http://qs1969.pair.com?node_id=284728


in reply to regexp mystery no xxx

WOW! I have no idea why, but if you remove the 'g' option on the second regex it works as expected. There really isn't a need for the 'g' in these examples because you're binding on ^ and $ which makes the 'g' useless.

-----------------------------------
Frank Wiles <frank@wiles.org>
http://frank.wiles.org