Vote UpVote

A Subtle Delphi TRegEx Change

Marco's Tech Blog – Last month I was approached by a customer who was migrating code from XE2 and saw some incompatibilities (or actually some bugs) in the way regular expressions are processed in the TRegEx class. He pointed out that using: RegEx := TRegEx.Create(sPattern); Match := RegEx.Match(sInput); would work properly, while forcing the expressions to compile (for extra performance, if the same expressions is applied multiple times), like in the following code will basically break the regular expressions engine: RegEx := TRegEx.Create(sPattern, [roCompiled]); Match := ...
Favorite? Off-Topic? marcocantu @ 2014-10-09 12:28


Visits: 1300
Votes: 1
Favorites: 1
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

Radosław Kokoć
Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News


Please login or register to use this functionality.
(click on this box to dismiss)