in reply to How to make these reg exp changes?
and it printed:if($string=~/(.*?)(\.+)(M+i+)/i) { $first=$1; $change=$2; $len_change=length($change); $third=$3; print $first; print 'O' x $len_change; print $third; print "\n"; }
which is correct. Is there a quicker way however?III...MMMMMOOOOOOOOMMMiiiii
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: How to make these reg exp changes?
by Anonymous Monk on Nov 15, 2009 at 22:51 UTC |