Predicate signature Make::isRegexpMatchingCandidateSig
Holds if it should be tested whether root
matches str
.
If ignorePrefix
is true, then a regexp without a start anchor will be treated as if it had a start anchor.
E.g. a regular expression /foo$/
will match any string that ends with “foo”,
but if ignorePrefix
is true, it will only match “foo”.
If testWithGroups
is true, then the RegexpMatching::fillsCaptureGroup
predicate can be used to determine which capture
groups are filled by a string.
Import path
import codeql.regex.nfa.RegexpMatching
signature predicate isRegexpMatchingCandidateSig(RootTerm root, string str, boolean ignorePrefix, boolean testWithGroups)