Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

Re: delete and substitute

by vitoco (Friar)
on Dec 09, 2009 at 12:50 UTC ( #811913=note: print w/replies, xml ) Need Help??

in reply to delete and substitute

Your sample data doesn't seem to be valid XML, so XML modules will fail.

Try the following line as a replace for both of yours:


Beware that this won't remove two "adjacent" tags from different lines, because you are processing one line at a time.

Replies are listed 'Best First'.
Re^2: delete and substitute
by Anonymous Monk on Dec 12, 2009 at 03:00 UTC
    This person keeps switching from HTML to XML, all trying to edit with regex, every time question changes by little bit

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://811913]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (5)
As of 2017-07-24 06:57 GMT
Find Nodes?
    Voting Booth?
    I came, I saw, I ...

    Results (348 votes). Check out past polls.