There’s not much new in the regular expression support in Delphi XE6. The big change that should be made, upgrading to PCRE 8.30 or later and switching to the pcre16 functions that use UTF-16, still hasn’t been made. XE6 still uses PCRE 7.9 and thus continues to require conversion from the UTF-16 strings that Delphi […]
Python 3.4 does not bring any changes to its regular expression syntax compared to previous 3.x releases. It does add one new function to the re module called fullmatch(). This function takes a regular expression and a subject string as its parameters. It returns a Match object if the regular expression can match the string […]
Java 8 brings a few changes to Java’s regular expression syntax to make it more consistent with Perl 5.14 and later in matching horizontal and vertical whitespace. \h is a new feature. It is a shorthand character class that matches any horizontal whitespace character as defined in the Unicode standard. In Java 4 to 7 […]
PCRE 8.34 adds some new regex features and changes the behavior of a few to make it better compatible with the latest versions of Perl. There are no changes to the regex syntax in PCRE 8.35. \o{377} is now an octal escape just like \377. This syntax was first introduced in Perl 5.12. It avoids […]
Read full article Comments Off on New regular expression features in PCRE 8.34 and 8.35
XRegExp is an open source JavaScript library. It extends JavaScript’s regex syntax and eliminates most cross-browser inconstencies and bugs. Last month’s update of the regexp.info website added full coverage of XRegExp to the tutorial and reference sections, but was missing the XRegExp page in the tools & languages section. This page has now been added.
The differences between the PerlRegEx unit I wrote and the RegularExpressionsCore unit in Delphi XE are minimal. Code using the latest PerlRegEx unit can be migrated unchanged to the RegularExpressionsCore unit.
The new version of TPerlRegEx is compatible with the RegularExpressionsCore unit in Delphi XE, so you can use the same code with Delphi XE and earlier versions of Delphi.
The upcoming releases of Delphi and C++Builder will have regular expression support in the box, based in part on the TPerlRegEx component developed by yours truly.
Read full article Comments Off on Regex Support Added to The RTL in Delphi XE and C++Builder XE
List of placeholders such as $1 and $& that you can use in the replacement text of JavaScript’s String.replace() function.
Delphi 2010 fixes the bug that caused internal errors when linking in the PCRE OBJ files if TPerlRegEx is installed into a design time package. The latest TPerlRegEx uses the OBJ files by default for Delphi 2010, and the DLL for earlier versions.
TPerlRegEx was updated to fix a crash bug when freeing the component when compiling it with the DLL.
TPerlRegEx for Delphi 2009 had a rather embarrasing bug: it didn’t actually enable the UTF-8 support in PCRE if you did not set the Options property to something different than the default.