Delphi XE implementation for Regex (TRegex) has significant differences. Where can I find a list of the available syntax? I've looked into Regexbuddy and RegexMagic but I can't believe there is no official documentation. I'm struggling with basic stuff to work, like matching a substring at the beginning of the string.
Asked
Active
Viewed 122 times
-4
-
1"Significant differences" from *what*? It's based on PCRE, and the documentation for the support can be found at any site that has PCRE documentation, including [Regular-Expressions.info](http://regular-expressions.info), which has the freeware implementation that forms the basis of Delphi's implementation. – Ken White Jul 25 '14 at 15:39
-
I should also mention that the author of Regular-Expressions.info is Jan Goyvaerts, who is also the author of TPerlRegEx (the basis of Delphi's implementation), RegexBuddy, and RegexMagic. (RegexBuddy will even generate the Delphi code for you to use.) – Ken White Jul 25 '14 at 19:52
1 Answers
3
The Embarcadero documentation for TRegEx
say the following:
TRegEx calls the TPerlRegEx functions that interface with the open source PCRE library.
So the regex flavour is PCRE. The Embarcadero documentation also gives a link to off-site documentation: http://www.regular-expressions.info/pcre.html
Perhaps the best place to start for documentation of the Delphi wrappers is also on that site: http://www.regular-expressions.info/delphi.html

David Heffernan
- 601,492
- 42
- 1,072
- 1,490