<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial,helvetica,sans-serif;font-size:12pt"><div style="font-family: arial,helvetica,sans-serif; font-size: 12pt;">Thanks, that worked a charm<br><br>I've modified it to /\\ref\{\s*\}+(\s.*)$/i in order to get a comment as well, although it gives me the whole paragraph. Is there any way to limit the number of following words to, say, 10?<br><br>Thanks,<br><br>baptiste<br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><div><br><br><div style="margin-left: 40px;">Something like<br><br>   /\\ref\{\s*\}/<br><br>in the Pattern section of the preferences ought to be enough. The  <br>double backslash gives a "real" backslash (it's usually used to  <br>escape other characters, such as the "\s*" to denote any amount of  <br>space between the braces above, or conversely, again as above,
 to  <br>indicate a *literal* brace). Having the "\s*" inside the braces means  <br>that if you accidentally leave blank space inside it'll still be  <br>flagged.<br><br>Cheers,<br>Paul <br>  <br></div><br></div></div><br></div></div><br>



      <hr size="1"> 
Ne gardez plus qu'une seule adresse mail ! <a href="http://www.trueswitch.com/yahoo-fr/">Copiez vos mails</a> vers Yahoo! Mail </body></html>