<FONT face="Default Sans Serif, Verdana, Arial, Helvetica, sans-serif" size=2><DIV>&gt;<FONT face="OCR A Extended">&gt; * explicitly use /s in regexps by default<BR><BR>&gt; Unless you habitully work with multiline input or...</FONT><BR><BR><DIV>Now, from the Owl book (Friedl "Mastering Regular Expressions"), I've learned the /s can be called 'single mode' in that it affects a single RE metachar, to wit the '.'&nbsp; With "/s" the '.' will match the \n char.&nbsp; That's it.&nbsp; The "/m" can be called "multi mode" in that it affects 2 (aka "multiple") RE metachars, the caret and dollar sign.&nbsp; In "/m" they match on either side of a normal 'line' (the $/ (er, $\?) char, normally \n) so that in a /g situation, for example, they'll match more than once if you have multi-line input.&nbsp; In the "/m"&nbsp;case \A and \Z can be used to match the absolute string begin/string end - otherwise "^" is the same as "\A" and "$" is the same as "\Z"</DIV><DIV>&nbsp;</DIV><DIV>I inject this here, only because its taken many, many rereads of that section and I still have the sinking feeling I've not got it right yet.&nbsp; I'm closer, maybe but ...</DIV><DIV>&nbsp;</DIV><DIV>a<br><br>Andy&nbsp;Bach,&nbsp;Sys.&nbsp;Mangler<br>Internet:&nbsp;andy_bach@wiwb.uscourts.gov&nbsp;&nbsp;&nbsp;&nbsp;<br>VOICE:&nbsp;(608)&nbsp;261-5738&nbsp;&nbsp;FAX&nbsp;264-5932<br><br>"Whereof&nbsp;we&nbsp;cannot&nbsp;speak,&nbsp;thereof&nbsp;we&nbsp;should&nbsp;remain&nbsp;silent."&nbsp;L.&nbsp;Wittgenstein<BR></DIV></DIV></FONT>