Regex Extractor

Extract data using a Regex (regular expression)

by @pixiebrix

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.

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

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions/Groups_and_Ranges#using_named_groups


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

Related Tags