in reply to regexp mystery no xxx

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

Replies are listed 'Best First'.
Re: Re: regexp mystery no xxx
by Anonymous Monk on Aug 18, 2003 at 21:23 UTC
    ah, yeah.. hehe.. Thanks 1 million Zaxo for the quick reply..(..arg, bug hunting makes me tired and frustrated..)

    Regards,
    Tom