Regex Extractor

by @pixiebrix

Extract data using a Regex (regular expression)


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

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
regex string
ignoreCase boolean

Outputs

Name Required Type Description
No outputs for this brick defined.

@pixiebrix/regex

Version

1.7.16

Created

Aug. 17, 2021

Updated

June 13, 2022