[Gambas-user] gb.pcre behaviour with Gambas3

Tobias Boege taboege at ...626...
Sun Feb 17 14:44:27 CET 2013


On Sun, 17 Feb 2013, Ron wrote:
> I'm sorry, I checked it again, but it wasn't reporting NULL but you
> get an 'Out of Bounds error' while checking rReg.Text <> ""
> 

RegExp.Text is a shortcut to RegExp.Submatches[0].Text and without match
this is out of bounds. It's like this since as far back as I can remember.
There definitely were Gambas2 versions which already raised this error.

Use rReg.Offset <> -1 to check.

Regards,
Tobi




More information about the User mailing list