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


in reply to Re^4: Removing the carriage return in a Find & Replace?
in thread Removing the carriage return in a Find & Replace?

Did you try Fletch's suggestion? On a Mac (which shouldn't matter much for this):
-> cat junk.html _ABC_<TD> <FONT FACE=arial SIZE=-1>_XYZ_ -> perl -00pe 's/<TD>\s*<FONT FACE=arial SIZE=-1>/widget/g' junk.html _ABC_widget_XYZ_