This feels however as if it could be simplified into a single regular expression.my ($match) = $string =~ /<(ab)>/; ($match) = $string =~ /(ab)/ unless defined $match;
In reply to Help with Regular Expression matching by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |