you want this:
$string =~ m/(A|B)(A|B)/; $match="$1$2";
or this:
$string =~ s/(A|B)(A|B)/lc("$1$2")/e;
or do you need $PREMATCH, $MATCH and $POSTMATCH ?
Cheers Rolf
In reply to Re: Regex Pipe Return
by LanX
in thread Regex Pipe Return
by TapTapTaperoo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |