in reply to Manipulating the Capture(s) of Regular Expressions
if ( $text =~ m/cow\s+(jumped)\s+over/ ) { substr($text, $-[1], $+[1] - $-[1], "tripped"); }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Manipulating the Capture(s) of Regular Expressions
by ikegami (Patriarch) on Jan 12, 2009 at 05:18 UTC | |
by missingthepoint (Friar) on Jan 12, 2009 at 06:12 UTC | |
Re^2: Manipulating the Capture(s) of Regular Expressions
by monarch (Priest) on Jan 12, 2009 at 05:46 UTC |