PHP: Match line against array of regexes

WarezAccess

New Member
I'm writing a quick PHP parser here and was wondering instead of writing\[code\]foreach($array as $line) { if(preg_match($regex1, ..) { } elseif(preg_match($regex2, ..) { }}\[/code\]Is there possible to match against an array of regexes?
 
Back
Top