[Gambas-user] RegExp not returning submatches

Benoit Minisini benoit.minisini at gambas-basic.org
Sat Nov 5 12:03:08 CET 2022


Le 21/10/2022 à 02:43, T Lee Davidson a écrit :
> On 10/20/22 17:31, gian via User wrote:
>> Hi Lee,
>>
>> to me your code is correct and is based on what is written in the 
>> Gambas wiki.
>>
>> I think this is a bug that should be reported.
> 
> Thank you for looking into it, Gianluigi.
> 
> Bug reported.
> 
> 

For information: this was not a bug, but a misunderstood of the RegExp 
(strange) API where the Count property is the number of submatches, but 
not the number of elements managed by the RegExp array operator.

Regards,

-- 
Benoît Minisini.



More information about the User mailing list