Implement PCRE Matching (prefer left-branch) #2

Merged
Rockingcool merged 48 commits from implementPCREMatchingRules into master 2025-02-09 15:24:29 -06:00
10 changed files with 428 additions and 579 deletions
Showing only changes of commit 47f88c817f - Show all commits

View File

@@ -1157,7 +1157,7 @@ func Compile(re string, flags ...ReFlag) (Reg, error) {
return reg, nil return reg, nil
} }
// MustCompile panicks if Compile returns an error. They are identical in all other respects. // MustCompile panics if Compile returns an error. They are identical in all other respects.
func MustCompile(re string, flags ...ReFlag) Reg { func MustCompile(re string, flags ...ReFlag) Reg {
reg, err := Compile(re, flags...) reg, err := Compile(re, flags...)
if err != nil { if err != nil {