Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

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.

Comment on Re: delete and substitute
Download Code
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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2015-03-29 06:49 GMT
Find Nodes?
    Voting Booth?

    When putting a smiley right before a closing parenthesis, do you:

    Results (630 votes), past polls