stoopid pattern matching...
Posted on 2000-04-26
I've got the following text in a UNIX text file that I need to do a pattern match on:
pagetitle="GLCC Home Page";
I'm trying to do a find-and-replace through the command line using this syntax:
perl -pi.bak -e 's#...#...#oi' *.html
But I can only match over one line. That is, I can match 'Script">\n' and I can match '\s+pagetitle', but I can't match 'Script">\n\s+pagetitle' for some obnoxious reason. My Camel book hasn't been enlightening. Help?