Text matches a pattern
True when the text fits a regular expression, as a whole or somewhere in it, e.g. ^INV-\d{6}$ for an invoice number.
Condition in the String toolkit · id ooa.string/matches_pattern · 4 inputs (2 required), no outputs
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Text | String | Yes | Text to check. | |
| Pattern | String | Yes | The regular expression. | |
| Whole text | Boolean | No | true | The whole text must fit; when off, a match anywhere counts. |
| Ignore case | Boolean | No | false | Upper and lower case alike. |