Nodes/comfy-ovum/re.match (Regex Match)
ComfyUI Node

re.match (Regex Match)

re.match(pattern, string, flags=0) If zero or more characters at the beginning of string[s] match the regular expression pattern, return a corresponding RE_MATCH_T. Return None if the string does not match the pattern; note that this is different from a zero-length match.

By sfinktah·Created 12 months ago·Updated 9 months ago· 6
re.match (Regex Match)
  • flags
  • match
pattern
string
string_in
pos0
endpos0
Categoryovum/regex

Inputs (6)

NameTypeDefaultDescription
patternSTRINGThe regular expression pattern.
stringSTRINGThe string to search. Used if `string_in` is not connected.
string_inoptSTRINGInput string or list of strings. Overrides `string` widget if connected.
flagsoptRE_FLAGS2Regex compilation flags.
posoptINT0The starting index for the match.
endposoptINT0The ending index for the match. If 0, searches to the end of the string.

Outputs (1)

NameTypeDescription
matchRE_MATCH