Advanced RegEx Tool icon

Advanced RegEx Tool

Performs powerful Regex pattern extraction, search-and-replace, and validation on unstructured text data (e.g., emails, logs, web scraping output).

Test

AI-generated

Overview

The Advanced RegEx Tool node performs powerful regular expression operations on unstructured text data. Specifically, in the 'Test' operation, it tests whether the input text matches the given regular expression pattern with specified flags. This node is useful for validating text formats, searching for patterns in logs, emails, or scraped web data, and quickly checking if a pattern exists within a text.

Use Case Examples

  1. Validating if an email address matches a specific pattern.
  2. Checking if a log entry contains a certain keyword or pattern.
  3. Testing if scraped web content includes a particular format or string.

Properties

Name Meaning
Input Text The text to process and test against the regex pattern.
Regex Pattern The regular expression pattern used to test the input text.
Regex Flags Flags for the regular expression, such as global (g), case-insensitive (i), or multiline (m).

Output

JSON

  • result - The result of the regex test operation, indicating whether the pattern matches the input text.

Dependencies

  • An API key credential for the customJsApi service is required to authenticate and perform the regex operation via an external HTTP POST request.

Troubleshooting

  • Common issues include invalid regex patterns causing errors, which will be returned as error messages in the output if 'continueOnFail' is enabled.
  • If the API key credential is missing or invalid, the node will fail to authenticate and throw an error.
  • Ensure the regex flags are valid; invalid flags may cause the regex operation to fail.

Discussion