[Gambas-user] changes to Regexp
Benoît Minisini
gambas at ...1...
Fri Mar 11 19:39:32 CET 2011
> I noitced with old versions of gambas, Regexp.Submatches[0].Text
> returns the whole match, .Submatches[1] the first submatch and so on.
> But in the latest version this changes and Submartches[0] becomes the
> first match.
>
> see project attached, its output on revision 3564
> re.SubMatches[0].Text the brown fox
> re.SubMatches[1].Text brown
>
> and svn 3641:
> re.SubMatches[0].Text brown
> re.SubMatches[1].Text fox
>
> Is this an intentional/permanent change in the language? (because I
> have quite a few Submatches references to change....)
>
> Ian
I recently cleaned up the code, but as I didn't write it initially, and
apparently I have made a mistake by being too logical.
I will fix that...
--
Benoît Minisini
More information about the User
mailing list