This is a follow-up to this question. How to scan and return a set of words with specific characters in them in Ruby
We want to scan for words starting with a certain set of letters and then return them in an array. Something like this:
b="h ARCabc s and other ARC12".scan(/\w+ARC*\w+/)
and get back:
How would I do this (and I know this is very similar to what I asked yesterday)?