It's not native VCL, but the regex syntax it supports is very complete.TPerlRegEx is a Delphi VCL wrapper around the open source PCRE library, which implements Perl-Compatible Regular Expressions. PCRE source code, with minor modifications, is included. PCRE was compiled into a DLL with C++Builder 6. By default, the OBJ files are linked directly into your application when using TPerlRegEx, and the DLL is not needed. Remove the definition of NO_PCRE_DLL in the PerlRegEx.pas unit if you prefer to use the DLL.
Time to switch to a more standard regexp engine ?
Moderators: Hacker, petermad, Stefan2, white
2ghisler(Author)
I'll quote from help:
- majkinetor !
- Power Member
- Posts: 1580
- Joined: 2006-01-18, 07:56 UTC
- Contact:
- ghisler(Author)
- Site Admin
- Posts: 50532
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Sorry, I don't have a Borland C compiler to create a lib which I could link with Delphi. Libs created with MS VC++ 6.0 cannot be linked with Delphi code. 

Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: 2ghisler(Author)
Is it me, or does it look like a very good news in disguise ?_meta_ wrote:Obj files are already included here...
http://www.regular-expressions.info/download/TPerlRegEx.zip

- majkinetor !
- Power Member
- Posts: 1580
- Joined: 2006-01-18, 07:56 UTC
- Contact:
Hm... can't help here.... never did that... maybe it is possible but I wouldn't know.Sorry, I don't have a Borland C compiler to create a lib which I could link with Delphi. Libs created with MS VC++ 6.0 cannot be linked with Delphi code
But TPerlRegEx sounds like nice solution for this problem. It would be good to use AHK library if possible as it is already extensively tested and I confirm it is very fast and small.
Habemus majkam!
- ghisler(Author)
- Site Admin
- Posts: 50532
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
- ghisler(Author)
- Site Admin
- Posts: 50532
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
It's probably a limitation of the Regex engine TRegEx, sorry.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Are we cursed to use the TRegExpr library for the whole life?
It is very limited and contains bugs.
One of the examples:
text:
"INTO
customers"
search string:
"INTO\s+customers"
this regexp should find the text, but in TC it does not.
If the author doesn't want to change this library then maybe it is possible to make a support for regexp plugins so it will be possible to dynamically choose the used regexp engine?
It is very limited and contains bugs.
One of the examples:
text:
"INTO
customers"
search string:
"INTO\s+customers"
this regexp should find the text, but in TC it does not.
If the author doesn't want to change this library then maybe it is possible to make a support for regexp plugins so it will be possible to dynamically choose the used regexp engine?
- ghisler(Author)
- Site Admin
- Posts: 50532
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
This isn't the fault of TRegExpr - it's a limitation of TC that you can only search within lines.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com