I've got a file that I'm parsing through with:
while (<file>)
the format of the file is this:
blahal askdjf, asdf jdfasd"asdf"(REGEX1)
kkdjf "REGEX2", (REGEX1), (REGEX3) "teets"
I'm trying to run a function any time certain regex's appear.
if (/(regex1|regex2|regex3)/gi) { f($1); }
but this only seems to grab once per line even if multiple regex's appear on a line.
How do I get this to run for each regex found?
In reply to Multiple regex catches on a line by kcitren
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |