|
|
| Perl-Sensitive Sunglasses | |
| PerlMonks |
Re: RegExp: pos management in global substitutionby Perlbotics (Monsignor) |
| on Sep 03, 2011 at 11:52 UTC ( #923982=note: print w/ replies, xml ) | Need Help?? |
|
I would use two regexp: first to check if line starts with {name_a and a second to remove all unwanted param_* entries: m/wanted name_a-line/ and s/unwanted parameters//g;
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||