Regex Guru

Thursday, 8 October 2009

TPerlRegEx for Delphi 2010

Filed under: Regex Libraries — Jan Goyvaerts @ 15:20

Ever since I updated TPerlRegEx to support Unicode on Delphi 2009, it’s been plagued by a bug in Delphi that triggers an internal error when linking the PCRE OBJ files into your application, if you had TPerlRegEx installed into a design time package. So I changed TPerlRegEx to link in the PCRE code from a DLL instead of the OBJ codes, at least by default.

This bug has been fixed in Delphi 2010. I have updated TPerlRegEx to use the OBJ files by default for Delphi 2010, and the DLL for earlier versions of Delphi. This is the only change. The DLL and OBJ files themselves haven’t changed since August’s release. You can still make Delphi 2010 use the DLL or make older versions use the OBJ files (as long as you don’t use design time packages) by editing the compiler directives at the top of pcre.pas.

Download TPerlRegEx. Source is included under the MPL 1.1 license.