EXPAND ALL
  • Home

regex_match

This function checks the input string (second arg) for a match with the regex pattern (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.

Returns: BOOLEAN

boolean representing whether the pattern matched the input or not.

Arguments

VariableTypeDescription
arg1STRINGThe regex pattern to match.
arg2STRINGThe string column to match the pattern against.

Examples:

df.is_match = px.regex_match('.*my_regex_pattern.*', df.resp_body)
This site uses cookies to provide you with a better user experience. By using Pixie, you consent to our use of cookies.