package
0.0.5
Repository: https://github.com/jsautret/genapid.git
Documentation: pkg.go.dev

# README

match

The match predicate checks a string is equal to another string or match a given regexp. Regexp uses go syntax.

Options

OptionRequiredDescription
stingyesThe string to match.
valueThe string to compare.
regexpThe regexp to match .

One of value or regexp must be present.

Results

FieldTypeDescription
resultbooleantrue if the value of string is equal to the value of value or if the value of string matches the regexp set by regexp.
matcheslist of strings(only when regexp option is set) List of strings containing capturing groups within the regular expression, numbered from left to right in order of opening parenthesis. First element is the match of the entire expression, submatch 1 the match of the first parenthesized subexpression, and so on.
namedmap of strings(only when regexp option is set) Map of strings containing named groups (?expr) in the regexp.