Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: XML / regex - cleaning up attributes

by rowdog (Curate)
on Oct 01, 2010 at 06:58 UTC ( #862915=note: print w/ replies, xml ) Need Help??


in reply to XML / regex - cleaning up attributes

As other monks have pointed out, that's far from valid XML but to answer your specific question...

Is there a regex that will remove this extra punctuation but leave the rest of the attribute (and tag) intact?

Sure, you can hack your way around broken XML with something like s/STORE'N'GO/STORENGO/ but don't, it's much better to consume actual XML.


Comment on Re: XML / regex - cleaning up attributes
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (13)
As of 2015-07-01 15:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (6 votes), past polls