[Gambas-user] RegExp: How to find all matches of a pattern (global match)?

Gianluigi gradobag at gradobag.it
Mon Aug 21 11:12:51 CEST 2023


Il 21/08/23 09:45, Gianluigi ha scritto:
> Il 21/08/23 09:03, Gianluigi ha scritto:
>> sSplit = Split(sReturn, " ", Null, True, True)
>
> I exaggerated with the True, it should be
>
> sSplit = Split(sReturn, " ", Null, True)
>
>
> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----

Hi Lee,

My explanation:

Compile is for making a template for use with Exec.
Exec only works in a loop.
Regular expressions are powerful but slow and should be minimized.
Gambas is fast.

But maybe I just said bullshit :-)

Regards

Gianluigi



More information about the User mailing list