How about or-ing the regexp then?
my ($match) = $string =~ /<(ab)>|(ab)/;
In reply to Re: Help with Regular Expression matching
by skx
in thread Help with Regular Expression matching
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |