in reply to Re: large hash of regex substitution strings
in thread large hash of regex substitution strings
I ask as I have about 50 regexs to work with.s/^\s+\(Text [aA].* (\d+:\d+ .*$)/\.T1 "$1/g;
Thanks for taking a further look at this. Thanks again.%search ( 1 => "s/^\s+\(Text [aA].* (\d+:\d+ .*$)/", 2 => ..... ); $replace ( 1 => "/\.T1 \"$1/", 2 => ..... ); Now I'd like to do something like this, and I know qr// fits in to the equation, I just dont know how .... yet :) while <VRUN> { s/$search/$replace/g; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: large hash of regex substitution strings
by ikegami (Patriarch) on Oct 19, 2007 at 20:42 UTC | |
|
Re^3: large hash of regex substitution strings
by Anonymous Monk on Oct 07, 2007 at 23:58 UTC |