Regular Expression Functions
PantherFlow regular expression functions
re.count()
re.count()
re.count(stringable: any, regex: string) -> int
Returns the number of times that regex
occurs in stringable
, or null
if any value is null
.
Example:
re.matches()
re.matches()
re.matches(stringable: any, regex: string) -> bool
Returns true if stringable
matches the regular expression regex
.
Example:
re.replace()
re.replace()
re.replace(stringable: any, regex: string, replacement: string) -> string
Returns stringable
with the specified pattern regex
(or all occurrences of the pattern) either removed or replaced by replacement
, or null
if any value is null
.
Example:
re.substr()
re.substr()
re.substr(stringable: any, regex: string) -> string
Returns the first substring that matches regex
within stringable
, or null
if any value is null
.
Example:
Last updated
Was this helpful?