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


in reply to Re^2: XML / regex - cleaning up attributes
in thread XML / regex - cleaning up attributes

You also need to replace & with &.