Regex Guru

Saturday, 13 February 2010

Регулярные выражения Сборник рецептов

Filed under: Regex Cookbook — Jan Goyvaerts @ 15:41

When the Fedex guy dropped off a copy of “Регулярные выражения Сборник рецептов” last week I thought there must have been some mistake. I don’t read any language that uses the Cyrillic script. Then I noticed the musk shrew on the cover. Turns out the book is the Russian translation of Regular Expressions Cookbook. It’s in hardback and the cover is maroon rather than magenta. Judging from the numbering in the table of contents, the book was translated entirely.

I don’t know anything about Russian bookstores. The very first page of “Регулярные выражения Сборник рецептов” is an advertisement for books.ru. Typing in the book’s ISBN on that site leads me to a page where you can apparently buy Регулярные выражения Сборник рецептов.

Reguläre Ausdrücke Kochbuch

Filed under: Regex Cookbook — Jan Goyvaerts @ 15:24

O’Reilly Germany just sent me my author copy of Reguläre Ausdrücke Kochbuch, the German translation of Regular Expressions Cookbook. The German edition is in hardback and the cover is light blue instead of magenta. The content of the book is the same, except translated in German.

You can buy Reguläre Ausdrücke Kochbuch from Amazon.de and get free delivery to Germany, Austria, Switzerland, Luxembourg, Liechtenstein, Belgium, and The Netherlands. You can also buy Reguläre Ausdrücke Kochbuch from Amazon.fr or buy Reguläre Ausdrücke Kochbuch from Amazon.co.uk. If you use one of the links in this blog to buy the book, Amazon pays me an affiliate commission that will actually exceed the royalty that O’Reilly pays, at no extra cost to you. Or you can support your local bookstore and buy Reguläre Ausdrücke Kochbuch wherever German language technical books are sold.

Friday, 6 November 2009

TPerlRegEx.CleanUp() Bugfix

Filed under: Regex Trouble — Jan Goyvaerts @ 16:28

Recent versions of TPerlRegEx were missing these two lines in the CleanUp() method after the call to pcre_dispose():

pattern := nil;
hints := nil;

Failing to set the pointers to nil caused TPerlRegEx to attempt to free them multiple times when reusing a TPerlRegEx instance with another regular expression. The latest version fixes this.

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

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.

« Previous PageNext Page »