Hello, I am using: s/<a href="(.+?)">(.+?)<\/a>/<a href="\/cgi-bin\/template\.cgi\?file=$1">$2<\/a>/igs;
to match HTML in a file that is formatted like: <li>System Backup/Restore - <a href="/Generic/Netbackup/nbrestor.html">NetBackup Restore Document</a></li> <li>Sybase Backup/Restore - <a href="/Generic/Netbackup/nbrestor.html">NetBackup Restore Document</a></li> The problem is that the pattern will match the second <li> (which is all on one line) but will not match the first <li> (which was broken up by Dreamweaver to 2 lines). I know that in order for the . operator to match newlines, the /s modifier needs to be used, which I do have, and this has worked in the past but I am unsure why it is not working now. Thanks very much, John Pitchko Data Services Saskatchewan Government Insurance