On Mon, Feb 25, 2008 at 03:02:31PM -0500, Complex wrote:
> what always used to get me is line-breaks. So expand Ken's answer by
> allowing line break characters to follow sail:
> 
> sail[\w\W]*?;"
> 
> (AND:   does anyone know a better way to do this? There's a switch you
> can use when doing this in Perl, right, so am I missing a similar
> option in BBEdit?)

Perl's /s modifier turns on single-line mode, which allows period to match
a newline.  (?s) can be used to embed the modifier in the regex:

(?s:sail.*?;")

Of course, the original poster will have to decide whether newlines should
be allowed there.

Ronald

-- 
------------------------------------------------------------------
Have a feature request? Not sure the software's working correctly?
If so, please send mail to <[EMAIL PROTECTED]>, not to the list.
List FAQ: <http://www.barebones.com/support/lists/bbedit_talk.shtml>
List archives: <http://www.listsearch.com/BBEditTalk.lasso>
To unsubscribe, send mail to:  <[EMAIL PROTECTED]>

Reply via email to