if ( $text =~ m/cow\s+(jumped)\s+over/ ) { substr($text, $-[1], $+[1] - $-[1], "tripped"); }
In reply to Re: Manipulating the Capture(s) of Regular Expressions
by ysth
in thread Manipulating the Capture(s) of Regular Expressions
by monarch
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |