Implement PCRE Matching (prefer left-branch) #2

Merged
Rockingcool merged 48 commits from implementPCREMatchingRules into master 2025-02-09 15:24:29 -06:00
7 changed files with 664 additions and 409 deletions
Showing only changes of commit 78fb5606dd - Show all commits

View File

@@ -183,7 +183,7 @@ func (s nfaState) checkAssertion(str []rune, idx int) bool {
strToMatch = string(runesToMatch)
}
regComp := Reg{startState, s.lookaroundNumCaptureGroups}
regComp := Reg{startState, s.lookaroundNumCaptureGroups, s.lookaroundRegex}
matchIndices := regComp.FindAll(strToMatch)
numMatchesFound := 0