How to Use
The regular expression brick will allow you to parse data from any given text input provided.
The text input can contain letters (supports different letter schemes too), numbers, space and special characters.
CAUTION: To use this Regex brick you will be needing to use "named captured groups" in your Regex syntax or you won't see any output.
Use Cases
- Regex is great for matching patterns
- You can use Regex for capturing phone numbers, dates, names, URLs from a piece of text
Related link
Inputs
Name | Required | Type | Description |
---|---|---|---|
input |
multiple
|
The text to run the regular expression against. If an array is provided, the regular expression will be run against each item. | |
regex |
string
|
A regular expression pattern. Supports [named capture groups](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Regular_expressions/Named_capturing_group) to extract multiple properties. | |
ignoreCase |
boolean
|
Toggle on perform a case-insensitive match. Defaults to false. |
Outputs
Name | Required | Type | Description |
---|