Skip to content

Releases: ltrzesniewski/pcre-net

v0.4.0

06 Mar 23:41
Compare
Choose a tag to compare

Updated to PCRE version 10.00 (aka PCRE2).

The public API has been refactored to account for the PCRE API changes.

v0.3.0

27 Dec 23:59
Compare
Choose a tag to compare

New: Partial matching and single match options.

Breaking change: PcreRegex.Match will return a PcrePossibleMatch object on failure, with an IsMatch property set to false.
This is necessary for partial matching support and is consistent with .NET's Regex.Match behavior.

v0.2.0

03 Dec 01:02
Compare
Choose a tag to compare
  • Last mark is returned in match result: (*MARK:foo) -> match.Mark == "foo"
  • Callout support ((?C1)) through a callback:
var regex = new PcreRegex(@"(\d+)(*SKIP)(?C1):\s*(\w+)");

var match = regex.Match(
    "1542: not_this, 1764: hello",
    data => data.Number == 1
            && int.Parse(data.Match[1].Value) % 42 == 0
                ? PcreCalloutResult.Pass
                : PcreCalloutResult.Fail);

// => match[2].Value == "hello"

v0.1.0

23 Nov 13:31
Compare
Choose a tag to compare

Initial PCRE.NET release