Hasty Briefsbeta

.NET Wrapper for latest PCRE2 library

17 hours ago
  • #.NET
  • #Regular Expressions
  • #PCRE.NET
  • PCRE.NET is a .NET wrapper for the PCRE2 library, supporting UTF-16 and 8-bit encodings.
  • Supported systems include Windows x64/x86, Linux x64/arm64, and macOS arm64/x64.
  • API is similar to .NET's System.Text.RegularExpressions, supporting operations like matching, replacement, and splitting.
  • Provides methods for NFA matching, substring extraction, and matched string replacement with callbacks and placeholders.
  • Offers a Span API for zero-allocation operations, enhancing performance.
  • Supports compiled patterns for speed, partial matching, and callout features.
  • Includes specialized classes for UTF-8 handling and DFA matching for linear time complexity.
  • Features like POSIX pattern conversion, partial matching, and JSON validation are highlighted.
  • Examples demonstrate extracting words, enclosing punctuation, and validating JSON strings.