Regex Builder for n8n

Visual regex builder with live testing and n8n-specific patterns

Flags:
//g
Matches will be highlighted here...

Regex Cheat Sheet

.

Any character except newline

\d

Digit (0-9)

\w

Word character (a-z, A-Z, 0-9, _)

\s

Whitespace

^

Start of string

$

End of string

*

Zero or more

+

One or more

?

Zero or one

{n}

Exactly n times

{n,m}

Between n and m times

[abc]

Character class

[^abc]

Negated class

(abc)

Capture group

a|b

Alternation (or)

How to use in n8n

In Function Nodes

const regex = /your-pattern/g;
const matches = text.match(regex);

In IF Nodes (Regex Match)

Use the “Regex” operation in IF nodes to filter data based on pattern matches. Enable case-insensitive matching with the “i” flag.

For Data Extraction

Use capture groups () to extract specific parts of matched text. Access groups with match[1], match[2], etc.

Need Help Building n8n Workflows?

FlowEngine makes it easy to create powerful n8n automation workflows with AI assistance.

Try FlowEngine Free