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
In reply to Re: regexp mystery no xxx
by ides
in thread regexp mystery no xxx
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |