[Gambas-user] RegExp: How to find all matches of a pattern (global match)?
gradobag at gradobag.it
Tue Aug 22 13:36:49 CEST 2023
Il 22/08/23 13:20, Benoît Minisini ha scritto:
> Le 22/08/2023 à 00:29, T Lee Davidson a écrit :
>> On 8/21/23 12:03, Jesus Guardon wrote:
>>> The external parenthesis makes the group that captures all matches.
>>> Don't forget to apply the "/gmi" modifiers, which stands for
>>> "multiline" and case "insensitive", if needed. See it working in my example:
>> Thank you for that pattern, Jesus. It is considerably shorter than
>> the one I was using. But, it still doesn't work in Gambas as there is
>> no Global Match compile option - at least not that I have found.
> The last commit
> added a RegExp.FindAll() method.
> You are welcome to try it and tell me if it behaves as you expected.
compiling i get this error :
Making all in gb.pcre
Making all in src
regexp2.c:323:10: fatal error: regexp_common.h: File o directory non
323 | #include "regexp_common.h"
make: *** [Makefile:514: gb_pcre_la-regexp2.lo] Errore 1
make: *** [Makefile:447: all-recursive] Errore 1
make: *** [Makefile:379: all] Errore 2
make: *** [Makefile:446: all-recursive] Errore 1
make: *** [Makefile:387: all] Errore 2
More information about the User