http://www.perlmonks.org?node_id=863239


in reply to XML / regex - cleaning up attributes

Your XML module probably contains a routine for reformatting strings to handle special characters. Run your path through that ... in fact, run all your string values through that, since you have no idea when someone will use "can't" or some other 'forbidden' character.

As Occam said: Entia non sunt multiplicanda praeter necessitatem.

  • Comment on Re: XML / regex - cleaning up attributes