Releases: ltrzesniewski/pcre-net
Releases · ltrzesniewski/pcre-net
v0.4.0
Updated to PCRE version 10.00 (aka PCRE2).
The public API has been refactored to account for the PCRE API changes.
v0.3.0
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
- 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
Initial PCRE.NET release