Additional menu

View Categories

Perform Match on Input String

< 1 min read

Use regular expression to extract data from a string.

Inputs:
Input String – string to process
Pattern – regular expression to apply on the string
Case Sensitive – is the pattern case sensitive
Multiline^ and $ match the start/end of each line instead of the whole string
Global Search – return only the first match or all of them
Ignore Whitespace
– ignore whitespaces and comments in the pattern
Single Line. matches any character including new line, making it a single line Input string

Outputs:
Regular Expression Matches – array with matching elements from the input string

Example

Extract email addresses from a string.

Input String:

Here are some emails: test@example.com, hello@tachytelic.net, and invalid.email@.

Pattern:

\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,6}\b