in reply to Re: Multiline Regex replacement in Multiline file
in thread Multiline Regex replacement in Multiline file
Also for each regex I have seperate set of pre defined replacement String not like Replace1 or Replace2( that was just used as an example) and I want replace the complete matched string with predefined Replacement String.for my $matchkey (keys %dic) { $line =~ s%$matchkey%$dic{$matchkey}%g; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Multiline Regex replacement in Multiline file
by Athanasius (Archbishop) on Sep 16, 2014 at 03:57 UTC | |
by akamboj84 (Novice) on Sep 17, 2014 at 03:22 UTC | |
by choroba (Cardinal) on Sep 17, 2014 at 11:47 UTC |