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


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