The /g switch is causing pos to be set to the end of the $title string. Omit /g on the first test and this behaves as you think it should.
After Compline,
Zaxo
In reply to Re: regexp mystery no xxx
by Zaxo
in thread regexp mystery no xxx
by Anonymous Monk
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |