Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: XML / regex - cleaning up attributes

by JavaFan (Canon)
on Oct 01, 2010 at 08:58 UTC ( #862929=note: print w/ replies, xml ) Need Help??


in reply to XML / regex - cleaning up attributes

Is there a regex that will remove this extra punctuation but leave the rest of the attribute (and tag) intact?
The problem is that for every example you give to "clean" up, it's easy to come up with a regex to do just that. Unfortunally, for any given regexp, there'll be an example where it makes it worse.


Comment on Re: XML / regex - cleaning up attributes

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (5)
As of 2014-07-12 22:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (241 votes), past polls