This uses the \G anchor to continue where the previous match ended.my (@rep) = /(?:It contains|\G) (\w+)[.,]/g;
In reply to Re: Regex to extract multiple occurrences
by pijll
in thread Regex to extract multiple occurrences
by Crackers2
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |