Skip to main content
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

ParameterDescriptionData TypeRequiredRange
stringThe input text to search for patternsSTRINGYes-
regex_patternThe regular expression pattern to search forSTRINGYes-
modeThe extraction mode determines what parts of matches are returned (default: “First Match”)COMBOYes”First Match"
"All Matches"
"First Group"
"All Groups”
case_insensitiveWhether to ignore case when matching (default: True)BOOLEANNo-
multilineWhether to treat the string as multiple lines (default: False)BOOLEANNo-
dotallWhether the dot (.) matches newlines (default: False)BOOLEANNo-
group_indexThe capture group index to extract when using group modes (default: 1)INTNo0-100
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 NameDescriptionData Type
outputThe extracted text based on the selected mode and parametersSTRING
This documentation was AI-generated. If you find any errors or have suggestions for improvement, please feel free to contribute! Edit on GitHub

Source fingerprint (SHA-256): a879e4fd7429edfada44b2f5778bb71e537a000be6c25d3f67359b9ee802812f