0CodeKit icon

0CodeKit

A toolbox of no-code utilities

Actions132

Text → Regular Expression

AI-generated

Overview

The node provides a "Regular Expression" operation under the "Text" resource, allowing users to evaluate a given text against a specified regex pattern. This is useful for extracting patterns, validating formats, or searching within text data in workflows without writing custom code.

Practical examples include:

  • Validating email addresses or phone numbers.
  • Extracting specific substrings like hashtags or URLs from social media posts.
  • Filtering or routing data based on pattern matches.

Properties

Name Meaning
Text The input text string that will be evaluated against the regular expression pattern.
Expression The regular expression pattern used to match against the input text (e.g., [a-zA-Z0-9]+).

Output

The output JSON contains the result of applying the regular expression to the input text. Typically, this includes matched substrings or boolean indicators of whether a match was found. The exact structure depends on the API response but generally provides the matching segments or match details.

No binary data output is indicated for this operation.

Dependencies

  • Requires an API key credential for authentication with the external 0CodeKit service.
  • The node sends a POST request to the /text/regex endpoint of the 0CodeKit API with the text and expression parameters.
  • The base URL for requests is https://prod.0codekit.com.
  • Proper network access and valid credentials are necessary for successful execution.

Troubleshooting

  • Common issues:

    • Invalid or malformed regular expressions may cause errors or no matches.
    • Empty or missing input text or expression properties will likely result in errors.
    • Network or authentication failures if the API key is missing or invalid.
  • Error messages:

    • Errors related to regex syntax should be resolved by verifying the pattern correctness.
    • Authentication errors require checking the API key configuration.
    • Timeout or connectivity errors suggest network issues or API downtime.

Links and References

Discussion