Extract
AI-generatedOverview
The Advanced RegEx Tool node performs powerful regular expression extraction on unstructured text data. It is useful for scenarios where you need to extract specific patterns from text such as emails, logs, or web scraping results. For example, extracting all email addresses from a block of text or pulling out specific data fields from log entries.
Use Case Examples
- Extracting all phone numbers from customer feedback text.
- Extracting URLs from web scraping output.
Properties
| Name | Meaning |
|---|---|
| Input Text | The text to process and extract data from. |
| Regex Pattern | The regular expression pattern used to find matches in the input text. |
| Regex Flags | Flags for the regular expression such as global (g), case-insensitive (i), or multiline (m) to control matching behavior. |
Output
JSON
result- The result of the regex extraction operation, containing matched data or extraction output.
Dependencies
- An API key credential for the external customJs API service used to perform regex operations.
Troubleshooting
- Common issues include invalid regex patterns causing errors, which will be returned as error messages in the output if 'Continue On Fail' is enabled.
- Errors related to missing or invalid API credentials for the external service.
- If the regex flags or pattern are incorrect, the extraction may return empty or unexpected results.
Links
- JavaScript Regular Expressions - Reference for regex patterns and flags used in the node.