Documentation
¶
Overview ¶
Original source by syft https://github.com/anchore/syft/blob/c53f2fbad369b7c19d28b3b63511c95a04e33ff1/internal/regex_helpers.go#L1
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrUnrecognizedExe = xerrors.New("unrecognized executable format") ErrNonGoBinary = xerrors.New("non go binary") )
Functions ¶
func MatchAnyFromReader ¶
MatchAnyFromReader matches any of the provided regular expressions from a reader, assuming the pattern fits within 1.5x the reader chunk size (1MB * 1.5).
func MatchNamedCaptureGroups ¶
MatchNamedCaptureGroups takes a regular expression and string and returns all of the named capture group results in a map. This is only for the first match in the regex. Callers shouldn't be providing regexes with multiple capture groups with the same name.
Types ¶
Click to show internal directories.
Click to hide internal directories.