Regular replicas # have a common syntax with PCRE regular expressions. Most functions overlap, but both libraries retain their specifics:
A few examples:
PCRE
- Recursion support
- Supports reverse traffic management verbs
- Supports constructs such as
(?(DEFINE) ... ) - Support for advanced options
- Offers DFA parsing mode
- Supports partial matches
- Support
\K - Supports
X++ shorthand syntax (equivalent (?>X+) )
.NET
- Supports capturing and duplication of named groups
- Balance Group Support
- Variable length lookbehind support
This list is not exhaustive. You can compare both options on this page and on the home pages.
Given the differences, I wanted to be able to use PCRE regular expressions from .NET and recently started PCRE.NET , which is a wrapper project. It is not finished yet, but is starting to be used.
source share