SyntaxFix
Write A Post
Hire A Developer
Questions
Using scan should do the trick:
scan
string.scan(/regex/)