Version of PCRE that PureBasic uses?
Version of PCRE that PureBasic uses?
I'm using PureBasic v6.10 but can't find a way to determine which version of PCRE it uses for its Regular Expression library? I need to know because a customer has asked so they can use the correct syntax for one of their regex text. Thanks!
Re: Version of PCRE that PureBasic uses?
Code: Select all
ImportC ""
pcre_version(void);
EndImport
regex = CreateRegularExpression(#PB_Any, "")
pcre_version = pcre_version(0)
Debug PeekS(pcre_version)
Belive! C++ version of Puzzle of Mystralia
Bug Planet
<Wrapper>4PB, PB<game>, =QONK=, PetriDish, Movie2Image, PictureManager,...
Bug Planet
<Wrapper>4PB, PB<game>, =QONK=, PetriDish, Movie2Image, PictureManager,...
Re: Version of PCRE that PureBasic uses?
this Pb_ I had looked at it earlier thinking it was a variable rather than a function
Code: Select all
ImportC ""
pb_pcre_version(void);
EndImport
regex = CreateRegularExpression(#PB_Any, "")
pcre_version = pb_pcre_version(0)
Debug PeekS(pcre_version,-1,#PB_Ascii)
Re: Version of PCRE that PureBasic uses?
idle's example was already posted by Fred about 9 years ago... 

Collection of cross-platform examples with API functions to extend PureBasic
-
- Addict
- Posts: 4780
- Joined: Thu Jun 07, 2007 3:25 pm
- Location: Berlin, Germany
Re: Version of PCRE that PureBasic uses?
Maybe it would be a good idea to include that snippet in the help.
Re: Version of PCRE that PureBasic uses?
Maybe it would be a good idea to have all libs with a version function for cases like this.
-
- Addict
- Posts: 4780
- Joined: Thu Jun 07, 2007 3:25 pm
- Location: Berlin, Germany
Re: Version of PCRE that PureBasic uses?
idle wrote: Fri Jul 18, 2025 10:02 am Maybe it would be a good idea to have all libs with a version function for cases like this.
Re: Version of PCRE that PureBasic uses?
Ah yes "PB_" is needed too:
Here the correct version (void is 'empty"):
Here the correct version (void is 'empty"):
Code: Select all
ImportC ""
pb_pcre_version();
EndImport
regex = CreateRegularExpression(#PB_Any, "")
pcre_version = pb_pcre_version()
Debug PeekS(pcre_version,-1,#PB_Ascii)
Belive! C++ version of Puzzle of Mystralia
Bug Planet
<Wrapper>4PB, PB<game>, =QONK=, PetriDish, Movie2Image, PictureManager,...
Bug Planet
<Wrapper>4PB, PB<game>, =QONK=, PetriDish, Movie2Image, PictureManager,...
Re: Version of PCRE that PureBasic uses?
Thanks, everyone. 

Re: Version of PCRE that PureBasic uses?
Wow; it's older than I thought, but at least it seems to support \K
Can't quickly find now, but there's a (10?) numbered groups support implementation in this forum (named groups are already available in PB)
Probably it's an AZJIO thing… Thanks!
PS/Edit:
It's this: viewtopic.php?p=643353#p643353

Can't quickly find now, but there's a (10?) numbered groups support implementation in this forum (named groups are already available in PB)
Probably it's an AZJIO thing… Thanks!
PS/Edit:
It's this: viewtopic.php?p=643353#p643353