plugin_strings

Apply a regular expression

Applies a regular expression to a text and returns a list of all matches.

Text Operations Action


This integration allows you to apply regular expressions to texts, facilitating the extraction and manipulation of specific data in your automations. With this tool, you can perform advanced searches and precise replacements, optimizing your processes and saving time on repetitive tasks.

Additionally, the flexibility of regular expressions enables you to adapt to a wide range of scenarios, from format validation to extracting complex information. Explore how this feature can enhance the efficiency and accuracy of your automations.


This operation is the equivalent of the match command in Javascript.




Customization Options

Configurable fields you can adjust in your automation

  • String
  • Pattern to search for (Regular Expression)
  • Customize tags
  • Rename output variables

Regular Expression Examples

The following table contains a list of regular expression examples for different cases.

Extract first sentence

Text Text 1. Text 2. Text 3.
Pattern /(.[^\.]*)\./
Results {{match.0}} → Text 1.
{{match.1}} → Text 1

Extract the first sentence and the remaining text

Text Text 1. Text 2. Text 3.
Pattern /(.[^\.]*)\.(.*)/
Results {{match.0}} → Text 1. Text 2. Text 3.
{{match.1}} → Text 1
{{match.2}} → Text 2. Text 3.

Extract the email

Text My email address is contact@gmail.com
Pattern /([a-zA-Z0-9._-]+@[a-zA-Z0-9._-]+\.[a-zA-Z0-9_-]+)/gi
Results {{match.0}} → contact@gmail.com

Extract the first number

Text The ABC 123 Song
Pattern /^[^\d]*(\d+)/
Results {{match.0}} → The ABC 123
{{match.1}} → 123

Extract the first URL

Text Visit my website https://abc.com/section?param=1
Pattern /(http|ftp|https)://([\w_-]+(?:(?:\.[\w_-]+)+))([\w.,@?^=%&:/~+#-]*[\w@?^=%&/~+#-])/
Results {{match.0}} → https://abc.com/section?param=1
{{match.1}} → https
{{match.2}} → abc.com
{{match.3}} → /section?param=1

Extract the first URL from a specified domain

Text Visit my website https://abc.com/section?param=1 and https://xyz.com
Pattern /https://ad\.admitad\.com/[^"\s]+/
Results {{match.0}} → https://xyz.com




Information provided

When executed, this operation delivers the following data, which can be used in the same automatic task.

  • Tags

  • Match 0 {{match0}}

  • Match 1 {{match1}}

  • Match 2 {{match2}}

  • Match 3 {{match3}}

  • Match 4 {{match4}}

  • Matches {{matches}}




Write us

By email or by Telegram.
Monday to Friday from 7 a.m. to 1 p.m. (Spain).

Let's talk

Choose day and time.
We share the screen and answer all your questions.