in reply to Re^2: Scrubbing XML
in thread Scrubbing XML

I anticipated that, hence the hardcoded regexp idea, but I just remembered something else -- you might need to set $/ = undef() as well as the hardcoded regexp, to prevent the CR and LF being split across a line break.

Update: and if using perl -ne, that would have to be done in a BEGIN{ } block

One world, one people