Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: RegExp: pos management in global substitution

by Perlbotics (Abbot)
on Sep 03, 2011 at 11:52 UTC ( #923982=note: print w/ replies, xml ) Need Help??


in reply to RegExp: pos management in global substitution

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;


Comment on Re: RegExp: pos management in global substitution
Select or Download Code
Re^2: RegExp: pos management in global substitution
by OlegG (Monk) on Sep 03, 2011 at 17:48 UTC
    I know. This is a purely scientific interest to do it with s/// only.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://923982]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (9)
As of 2014-07-11 06:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (220 votes), past polls