Andy Lester wrote:<br>> The first statement matches, and leaves the internal matching pointer
pointing<br>> after the first match, which means at the end of the first
string. Then, the second<br>> match tries to pick up at the same place,
because of the /g flag.<br><br>The "/g" flag carries across multiple matching calls/lines?<br><br>Learn something new every day... Thanks!<br><br>Dan<br><br>-- <br>***************** ************* *********** ******* ***** *** **<br>
"Quis custodiet ipsos custodes?"<br> (Who can watch the watchmen?)<br> -- from the Satires of Juvenal<br>"I do not fear computers, I fear the lack of them."<br> -- Isaac Asimov (Author)<br>** *** ***** ******* *********** ************* *****************<br>