Forum > Third party

Test Regular Expressions

(1/1)

Gustavo 'Gus' Carreno:
Hey Y'All,

Project: Test Regular Expressions

This is an example on how to use regular expressions.

For simplicity's sake, I'm only demonstrating the Exec/ExecNext functionality. There's more to it than just these two, like the Substitute and Split functionalities.

I've also decided to use the RegExpr package that is provided in the packages that come by default with Free Pascal's compiler installation.
You can have a better picture of other options in this entry of the Wiki: Regular Expression Packages

You can find some documentation about TRegExpr here: TRegExpr Class.

Cheers,
Gus

Thaddy:
In recent trunk there is libpcre that provides bindings for the standard Perl Compatible Regular Expressions libraries (Ansi and Unicode versions).

I did not use it yet, though.
Expect this to be 100% pcre instead of the 99% compatibility of RegExpr, although the latter is pure pascal.

Added it to the wiki.

Gustavo 'Gus' Carreno:
Hey Thaddy,


--- Quote from: Thaddy on March 24, 2025, 09:04:02 am ---Added it to the wiki.

--- End quote ---

Thanks !! Really appreciate the effort !!

Cheers,
Gus

Thaddy:
It is not complete yet.
I need to add where to find the correct binaries and since libpcre2 is versioned, provide a way to those correct binaries.
The committed version in trunk - not written by me - is libpcre version dependent and uses a version that is not current. Recent, but not current.
So it basically works, but it works for just a few: you need to build the binaries yourself. Few can...
That is not good enough yet.
Only recommend it for testing by very senior programmers.

Gustavo 'Gus' Carreno:
Hey Thaddy,


--- Quote from: Thaddy on March 24, 2025, 06:45:59 pm ---It is not complete yet.
I need to add where to find the correct binaries and since libpcre2 is versioned, provide a way to those correct binaries.
The committed version in trunk - not written by me - is libpcre version dependent and uses a version that is not current. Recent, but not current.
So it basically works, but it works for just a few: you need to build the binaries yourself. Few can...
That is not good enough yet.
Only recommend it for testing by very senior programmers.

--- End quote ---

Gotcha, loud and clear!!

Will not touch it with a 10 feet barge pole until it's more mature!
Thanks for the warning !!

Cheers,
Gus

Navigation

[0] Message Index

Go to full version