CodeQL library for Go
codeql/go-all 3.0.1-dev (changelog, source)
Search

Primitive predicate string::regexpFind

Returns a substring of the receiver which matches the given regular expression. Also returns the offset within the receiver (starting at 0) at which the match occurred (occurrenceOffset), and the number of matches which occur at smaller offsets (occurrenceIndex). The regex format used is Java’s Pattern.

string regexpFind(string regexp, int occurrenceIndex, int occurrenceOffset)