<HTML>
<HEAD>
<TITLE>Re: [TxMt] regex question</TITLE>
</HEAD>
<BODY>
<FONT COLOR="#000098"><FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12.0px'>> So I just read in the documentation:<BR>
</SPAN></FONT></FONT><FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12.0px'><FONT COLOR="#006600">>> [...] it is not possible to use a pattern that matches multiple <BR>
>> lines. [...]<BR>
</FONT><BR>
Not true (if you are talking about find and replace searching). <BR>
<BR>
Enable multiline searching using (?m)<BR>
the pattern "(?m)get.*Kend" will find one match in the following example text (hit cntrl-cmd-E to open this email in textmate and then select the pattern and hit cmd-E to try it out <BR>
<BR>
Papers to get<BR>
Newton Morton (Southhampton high IQ geneticist)<BR>
Eaves et al. 2005<BR>
Kendler (and Eaves?) 2005<BR>
Extended phenotype<BR>
<BR>
<BR>
I like this help page for Oniguruma<BR>
<BR>
<a href="http://www.jpsoft.com/help/index.htm?regularexpressionsyntax.htm">http://www.jpsoft.com/help/index.htm?regularexpressionsyntax.htm</a><BR>
<BR>
<BR>
Other powerful underused options are:<BR>
(?i) = ignore case (?#greatly simplifies reg ex for words where caps vary)<BR>
(?# oh yes # allows comments – very handy when writing bundles you want to be more explanatory:-)<BR>
<BR>
<BR>
</SPAN></FONT>
</BODY>
</HTML>