Regex matcher
A regex matcher designed for safety when used with untrusted input.
google_re2
(type.matcher.v3.RegexMatcher.GoogleRE2, REQUIRED) Google’s RE2 regex engine.
regex
Google’s RE2 regex engine. The regex string must adhere to the documented . The engine is designed to complete execution in linear time as well as limit the amount of memory used.
max_program_size
(UInt32Value) This field controls the RE2 “program size” which is a rough estimate of how complex a compiled regex is to evaluate. A regex that has a program size greater than the configured value will fail to compile. In this case, the configured max program size can be increased or the regex can be simplified. If not specified, the default is 100.
Describes how to match a string and then produce a new string using a regular expression and a substitution string.
pattern
() The regular expression used to find portions of a string (hereafter called the “subject string”) that should be replaced. When a new string is produced during the substitution operation, the new string is initially the same as the subject string, but then all matches in the subject string are replaced by the substitution string. If replacing all matches isn’t desired, regular expression anchors can be used to ensure a single match, so as to replace just one occurrence of a pattern. Capture groups can be used in the pattern to extract portions of the subject string, and then referenced in the substitution string.
substitution