I am writing a simple program to filter out stock quotes from a given string via a regex. I am not having a problem with the printed results in the array but when I attempt to use "include?" to output a bool of a specific printed result, I am receiving false.
This code demonstrates my exact issue:
I have shown the matches, the # of elements, and verified it is an array in the code but when I try to pull the specific printed element "A" using "include?" (line 10), it fails to output "true."
I would very much appreciate if someone would kindly explain my error here or how I would appropriately go about finding if a specific element is in the array. Thank you.