n8n Β· Text

n8n match()

Searches a string with a regular expression and returns an array of matches, or null.

Syntax

text.match(/regex/)

Example

'mail [email protected]'.match(/\S+@\S+/)[0]

Result: [email protected]

Practice match() β€” free interactive labs

More n8n text functions