Skip to main content
This documentation was AI-generated. If you find any errors or have suggestions for improvement, please feel free to contribute! Edit on GitHub
The RegexExtract node searches for patterns in text using regular expressions. It can find the first match, all matches, specific groups from matches, or all groups across multiple matches. The node supports various regex flags for case sensitivity, multiline matching, and dotall behavior.

Inputs

ParameterData TypeRequiredRangeDescription
stringSTRINGYes-The input text to search for patterns
regex_patternSTRINGYes-The regular expression pattern to search for
modeCOMBOYes”First Match"
"All Matches"
"First Group"
"All Groups”
The extraction mode determines what parts of matches are returned
case_insensitiveBOOLEANNo-Whether to ignore case when matching (default: True)
multilineBOOLEANNo-Whether to treat the string as multiple lines (default: False)
dotallBOOLEANNo-Whether the dot (.) matches newlines (default: False)
group_indexINTNo0-100The capture group index to extract when using group modes (default: 1)
Note: When using “First Group” or “All Groups” modes, the group_index parameter specifies which capture group to extract. Group 0 represents the entire match, while groups 1+ represent the numbered capture groups in your regex pattern.

Outputs

Output NameData TypeDescription
outputSTRINGThe extracted text based on the selected mode and parameters