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() }
In reply to Re: Help with Generic Pattern Matching Statement
by holli
in thread Help with Generic Pattern Matching Statement
by EchoAngel
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |