in reply to Help with Generic Pattern Matching Statement
I'm not sure how to create a general pattern matching expression for these casesWhen your text is to variant for creating a single regex, use more than one. Like:
if ( /pattern1/ ) { do_stuff() } elsif ( /pattern1/ ) { do_stuff() } elsif ( /pattern3/ ) { do_stuff() } else { no_match() }
|
|---|