EXPAND ALL
- Home
- About Pixie
- Installing Pixie
- Using Pixie
- Tutorials
- Reference
This function checks the input string (second arg) for a match with the regex pattern rules(first arg). The regex pattern must match the full string. For example, the pattern 'abc' doesn't match the string 'abcd' but the pattern 'abc*' does match that string. We support google RE2 syntax. More details on that syntax can be found here.
string representing the name of the first rule that matched or an empty string if no match.
Variable | Type | Description |
---|---|---|
arg1 | STRING | The encoded json map from the name of the rule to the regex pattern for the rule. |
arg2 | STRING | The string column to match the pattern against. |
df.is_match = px.regex_match('{"rule1": ".*my_regex_pattern.*"}', df.resp_body)