PCRE.NET

Perl Compatible Regular Expressions for .NET

PCRE.NET is a .NET wrapper for the PCRE2 library.

The library provides variants for UTF-16 (.NET string and ReadOnlySpan<char>) and 8-bit encodings such as UTF-8 (ReadOnlySpan<byte>).

The following systems are supported:

  • Windows x64
  • Windows x86
  • Linux x64
  • Linux arm64
  • macOS arm64
  • macOS x64

API Types

The classic API

This is a friendly API that is very similar to .NET’s System.Text.RegularExpressions. It works on string objects, and supports the following operations:

  • NFA matching and substring extraction:

  • Matches

  • Match

  • IsMatch

  • Matched string replacement:

  • Using Replace, the PCRE.NET API:

  • Callbacks: `Func<PcreMatch, str…

Similar Posts

Loading similar posts...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help