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
test-regexp-0.0.1.tar.gz
Description: GNU Zip compressed data
------------------------------------------------------------------------------ Colocation vs. Managed Hosting A question and answer guide to determining the best fit for your organization - today and in the future. http://p.sf.net/sfu/internap-sfd2d
_______________________________________________ Gambas-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/gambas-user
