regexp2 icon indicating copy to clipboard operation
regexp2 copied to clipboard

A full-featured regex engine in pure Go based on the .NET engine

Results 9 regexp2 issues
Sort by recently updated
recently updated
newest added

In other words maintain the order of capture groups. With the `MaintainCaptureOrder` regexp option. I also added inline option `o`. It's useful if you only have access to the pattern,...

I wander if regexp2 can provide the same APIs adapt to std.regexp. So that I can change my rely between regexp2 & std.regexp easily by just change the expr text...

One more that was fuzzed during the night ;) ```golang package main import ( "fmt" "runtime/debug" "github.com/dlclark/regexp2" ) var testCases = []struct { r, s []byte }{ { r: []byte{0x30,...

The following test results in an infinite loop. ```go func TestOverlappingMatch(t *testing.T) { re := MustCompile(`((?:0*)+?(?:.*)+?)?`, 0) match, err := re.FindStringMatch("0\xfd") if err != nil { t.Fatal(err) } for match...

This is NOT an issue and just to let you know that a new "absent operator" has been implemented on Ruby's regexp lib named Onigmo. Sorry for this if this'd...

enhancement

``` command: go test -buildmode pie -compiler gc -ldflags " -X github.com/dlclark/regexp2/version=1.10.0 -extldflags '-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redh at/redhat-package-notes '" testing: github.com/dlclark/regexp2 github.com/dlclark/regexp2 --- FAIL: TestDeadline (0.00s) ---...

In RE2 compatibility mode, `regexp2` supports Python-style named capture groups (eg. `(?Pre)`). But there doesn't appear to be support for Python-style named backreferences (eg. `(?P=name)`). Do you have any plans...

Fix ECMAScript un-escaped literal '-' when followed by predefined character sets. Also: * Fixed missing error check on parseProperty() call. * Use addChar(ch) helper instead of addRange(ch, ch). Fixes #54

When compiling using `regexp2.ECMAScript` the regexp `[a-\s]` fails with the following but it should pass: ``` error parsing regexp: cannot include class \115 in character range in `[a-\s]` ``` [regexp101...