Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Re^3: regex and delete

by LanX (Chancellor)
on Jan 14, 2013 at 10:53 UTC ( #1013187=note: print w/ replies, xml ) Need Help??

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

> 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

Comment on Re^3: regex and delete
Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (3)
As of 2016-02-07 00:41 GMT
Find Nodes?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?

    Results (238 votes), past polls