http://qs321.pair.com?node_id=713867


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

I'm on a Mac using TextEdit in text mode (no MS) and Terminal to run Perl.
Have you been able to get my example to work on your machine? Thanks,
Bob
  • Comment on Re^4: Removing the carriage return in a Find & Replace?

Replies are listed 'Best First'.
Re^5: Removing the carriage return in a Find & Replace?
by broomduster (Priest) on Sep 26, 2008 at 13:07 UTC
    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_