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

Re: Regular expression to replace xml data

by grizzley (Chaplain)
on Oct 07, 2009 at 08:19 UTC ( [id://799671]=note: print w/replies, xml ) Need Help??


in reply to Regular expression to replace xml data

I agree with others' posts, but if you have only this case and want straight answer to your question, here it is:

$str =~ s/>([^<>]*?)<([^<>]*?)<\//>$1&lt;$2<\//g;

Replies are listed 'Best First'.
Re^2: Regular expression to replace xml data
by Anonymous Monk on Jul 26, 2013 at 01:48 UTC
    Thank you SO MUCH. I, too, agree with the previous posts, but in my case I can't do anything about the XML parser already in place.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (3)
As of 2024-04-24 04:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found