Skip to content

Releases: ltrzesniewski/pcre-net

v0.18.0

14 Nov 13:14
Compare
Choose a tag to compare
  • Updated PCRE to v10.39
  • Added a ValueSpan property to string-based matches and groups

v0.17.0

21 Oct 18:17
Compare
Choose a tag to compare
  • Updated PCRE to v10.38 with a patch.
  • Added XML documentation (IntelliSense)
  • Disallowed reentrancy in PcreMatchBuffer
  • Breaking change: Changed the exception types thrown on error
  • Added the PCRE error code to the exceptions

v0.17.0-pre2

25 Sep 14:53
Compare
Choose a tag to compare
v0.17.0-pre2 Pre-release
Pre-release
  • New zero-allocation API: The PcreRegex.CreateMatchBuffer method lets you create a buffer which can then be used for matching operations without performing any further allocations.
  • Breaking change: Removed the following members on PcreMatchSettings: StartIndex, AdditionalOptions, SetCallout. These options now need to be provided directly to the Match/Matches methods. PcreMatchSettings now only contains advanced settings.
  • Removed the PcreRefMatch.Copy() method introduced in v0.17.0-pre1. PcreRefMatch can now be copied normally like any struct, and won't be overwritten unless it's created by the zero-allocation API.

v0.17.0-pre1

02 Sep 17:50
Compare
Choose a tag to compare
v0.17.0-pre1 Pre-release
Pre-release
  • Updated PCRE to v10.38-RC1
  • Added PcreExtraCompileOptions.AllowLookaroundBsK to enable \K support in lookarounds
  • Removed allocations when the match fails and there are few capturing groups in the pattern
  • Added a PcreRefMatch.Copy() method to create a copy of a ref match that will not be overwritten
  • Made some other optimizations

v0.16.0

30 May 15:31
Compare
Choose a tag to compare
  • Updated PCRE to v10.37
  • Added a .NET 5 target with a few optimizations

v0.15.0

10 Jan 16:32
Compare
Choose a tag to compare
  • Added a GroupNames property in the pattern info (#24)
  • Added nullable reference types annotations
  • Breaking change: match[invalidIndex] and match[invalidName] won't return null anymore, but an "undefined" group
  • Added a IsDefined property to PcreGroup and PcreRefGroup to tell if a group index or name is defined
  • Added TryGetGroup methods to PcreMatch and PcreRefMatch to tell if a group index or name is defined
  • Made the values returned by PcreRefGroup consistent with those returned by PcreGroup when a group did not match

v0.14.0

11 Dec 17:37
Compare
Choose a tag to compare
  • Updated PCRE to v10.36

v0.13.1

10 Aug 20:26
Compare
Choose a tag to compare
  • Removed dependency on C++ library (#20)
  • Fixed overflow error in callouts (#21)

v0.13.0

23 May 22:50
Compare
Choose a tag to compare
  • Updated PCRE to v10.35

v0.12.0

28 Jan 20:27
Compare
Choose a tag to compare
  • Added new APIs for matching ReadOnlySpan<char> inputs, based on ref struct types. These APIs will cause substantially less heap allocations.
  • The IsMatch instance method no longer allocates on the heap if there are few capturing groups in the pattern.