中文
Node Documentation

Regex Extract

DataTarget independenttext.regex-extract

Extract the first regular-expression match; with capture groups, group 1 is taken. No match gives an empty string, while an invalid pattern fails the run.

Example use

Use a regular expression to extract digits from "Order: 12345".

Node preview

Right-drag to pan and scroll to zoom. Expand inputs and edit parameters to see how ports change. This preview does not run the node; reopening the page restores the example.

Loading node preview…

Data inputs 2

TexttextString

The text this node reads, converts, searches or types.

Default availableDefault: ""
PatternpatternString

A regular expression; use ^ and $ to require a full-string match.

Default availableDefault: ""

Data outputs 1

ResultresultString

The result of this data operation, with its type determined by the matching inputs.

Version and node identity

Version 1.0.0

sha256:d2043b7f5ada4cd5dbe2a8467359d007443bf23705ece44eb42af02370a0d20d