Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

Re^2: regex and delete

by freekngeek (Acolyte)
on Jan 14, 2013 at 10:43 UTC ( #1013184=note: print w/ replies, xml ) Need Help??

in reply to Re: regex and delete
in thread regex and delete

It's a fix format and it's working now. Thank you for your solution, May be I'll try this some other time.

Comment on Re^2: regex and delete
Replies are listed 'Best First'.
Re^3: regex and delete
by LanX (Canon) on Jan 14, 2013 at 10:53 UTC
    > It's a fix format and it's working now.

    no it's not, chorobas solution will delete any "L " outside of parens too.

    if its really a fix format, use something like s/\(L (\d+) W (\d+)\)/($1 $2)/g

    Cheers Rolf

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (10)
As of 2015-10-09 16:15 GMT
Find Nodes?
    Voting Booth?

    Does Humor Belong in Programming?

    Results (244 votes), past polls