- or download this
while(/(regex1)/gi || /(regex2)/gi || /(regex3)/gi)
- or download this
while(<file>) {
(/(regex1)/i || /(regex2)/i || /(regex3)/i) && f($1);
}
- or download this
while(<file>) {
#put a while around the regexes if there is multiple
...
(/(regex3)/i && doSomethingForRegex3($1)) ) &&
still_do_a_general_func_if_needed($1);
}