Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

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]
Jar. Jar!...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (6)
As of 2017-06-28 15:56 GMT
Find Nodes?
    Voting Booth?
    How many monitors do you use while coding?

    Results (640 votes). Check out past polls.