Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
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 taking refuge in the Monastery: (9)
As of 2016-06-25 17:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (326 votes). Check out past polls.