There's more than one way to do things | |
PerlMonks |
Re: XML / regex - cleaning up attributesby rowdog (Curate) |
on Oct 01, 2010 at 06:58 UTC ( [id://862915]=note: print w/replies, xml ) | Need Help?? |
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.
In Section
Seekers of Perl Wisdom
|
|