Nodes/comfy-ovum/re.escape (Regex Escape)
ComfyUI Node

re.escape (Regex Escape)

re.escape(pattern) Escape special characters in pattern[s]. This is useful if you want to match an arbitrary literal string that may have regular expression metacharacters in it. As of Python 3.7, only characters that can change the meaning of a regular expression are escaped.

By sfinktah·Created 12 months ago·Updated 9 months ago· 6
re.escape (Regex Escape)
    • escaped
    string
    string_in
    Categoryovum/regex

    Inputs (2)

    NameTypeDefaultDescription
    stringSTRINGThe string with special regex characters to escape. Used if `string_in` is not connected.
    string_inoptSTRINGInput string or list of strings to escape. Overrides `string` widget if connected.

    Outputs (1)

    NameTypeDescription
    escapedSTRING