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; }
In reply to Re^2: Multiline Regex replacement in Multiline file
by akamboj84
in thread Multiline Regex replacement in Multiline file
by akamboj84
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |