Page 2 of 2

2ghisler(Author)

Posted: 2006-11-15, 19:44 UTC
by _meta_
I'll quote from help:
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.
It's not native VCL, but the regex syntax it supports is very complete.

Posted: 2006-11-16, 09:13 UTC
by majkinetor !
I'm not aware of any better RegEx library in Delphi. I don't want to use another external dll for now.
AutoHotkey didn't add it as external library but included it is in main exe. I said LoadLibrary just as an example of usage but you can also staticly link it.

Posted: 2006-11-16, 16:42 UTC
by ghisler(Author)
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. :(

2ghisler(Author)

Posted: 2006-11-17, 07:32 UTC
by _meta_

Re: 2ghisler(Author)

Posted: 2006-11-17, 15:57 UTC
by PoV
_meta_ wrote:Obj files are already included here...

http://www.regular-expressions.info/download/TPerlRegEx.zip
Is it me, or does it look like a very good news in disguise ? ;)

Posted: 2006-11-17, 17:08 UTC
by majkinetor !
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
Hm... can't help here.... never did that... maybe it is possible but I wouldn't know.


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.

Posted: 2006-11-19, 23:33 UTC
by ghisler(Author)
I will try it, thanks!

Posted: 2006-12-10, 16:14 UTC
by Raymond
Just found out that I can't search multibyte like Chinese when searching file or searching in Lister by RegEx.
Is it a bug or just the limit of TC's regex engine?

Posted: 2006-12-10, 17:09 UTC
by ghisler(Author)
It's probably a limitation of the Regex engine TRegEx, sorry.

Posted: 2008-02-20, 22:05 UTC
by franc
I vote too for a better RegEx-Library!

franc

Posted: 2008-11-24, 23:39 UTC
by dott

Posted: 2012-02-10, 14:41 UTC
by PashkaTLT
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?

Posted: 2012-02-12, 09:27 UTC
by ghisler(Author)
This isn't the fault of TRegExpr - it's a limitation of TC that you can only search within lines.