To make a qualifier non-greedy,<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
simply add an asterix at its end:<br>
<br>
r&#39;&lt;email&gt;WORD1-.*?&lt;/email&gt;&#39;<br>
<font color="#888888"></font><br></blockquote><div><font color="#888888"><br></font>Hugo explains this nicely, but I just wanted to make one minor correction  -- the non-greedy qualifier is the question mark AFTER an the asterisk (which is what Hugo&#39;s code shows but I believe he accidentally left off). <br>
<br>Serdar<br><br></div></div>