[Gambas-user] changes to Regexp
Ian Haywood
ihaywood at ...1979...
Fri Mar 11 12:24:09 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test-regexp-0.0.1.tar.gz
Type: application/x-gzip
Size: 4651 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20110311/a0c05069/attachment.bin>
More information about the User
mailing list