Do you know where your variables are? | |
PerlMonks |
Re^2: Removing the carriage return in a Find & Replace?by bobafifi (Beadle) |
on Sep 26, 2008 at 12:04 UTC ( [id://713862]=note: print w/replies, xml ) | Need Help?? |
Thanks for the quick reply psini! Using your suggestion, I just tried perl -i -pe 's/<TD>\s*<FONT FACE=arial SIZE=-1>/widget/g' * test.php unfortunately it didn't work. However, when I remove the carriage return in the html and run perl -i -pe 's/<TD><FONT FACE=arial SIZE=-1>/widget/g' * test.php no problem. Not sure why, but the s* doesn't seem to be recognized. Thanks again, Bob
In Section
Seekers of Perl Wisdom
|
|