Andy Lester wrote:<br>&gt; The first statement matches, and leaves the internal matching pointer 
pointing<br>&gt; after the first match, which means at the end of the first 
string.  Then, the second<br>&gt; match tries to pick up at the same place, 
because of the /g flag.<br><br>The &quot;/g&quot; flag carries across multiple matching calls/lines?<br><br>Learn something new every day...  Thanks!<br><br>Dan<br><br>-- <br>***************** ************* *********** ******* ***** *** **<br>

&quot;Quis custodiet ipsos custodes?&quot;<br>    (Who can watch the watchmen?)<br>    -- from the Satires of Juvenal<br>&quot;I do not fear computers, I fear the lack of them.&quot;<br>    -- Isaac Asimov (Author)<br>** *** ***** ******* *********** ************* *****************<br>