0CodeKit icon

0CodeKit

A toolbox of no-code utilities

Actions108

Overview

The node "0CodeKit" is a versatile toolbox of no-code utilities that supports multiple resources and operations, including text processing. Specifically, for the Text resource with the Regex operation, the node allows users to perform regular expression matching on input text. This can be useful for extracting patterns, validating formats, or searching within strings.

Common scenarios include:

  • Extracting specific substrings from text based on regex patterns.
  • Validating input data formats (e.g., emails, phone numbers).
  • Searching for keywords or patterns in large text bodies.

Example: You provide a block of text and a regex pattern, and the node returns matches found according to the pattern.

Properties

Name Meaning
Code Variables A collection of code variables where each variable has a name (selected from defined code editor variables) and a string value. These variables can be used as inputs or parameters in the code execution context.

Note: The provided properties JSON only defines "Code Variables" which is a fixed collection allowing multiple entries. Each entry requires selecting a variable name or ID and assigning it a string value.

For the Text resource Regex operation specifically, the node expects these input parameters (inferred from code usage):

  • text: The input text string to apply the regex on.
  • end (likely the regex pattern): The regular expression pattern to use.

These are not explicitly listed in the provided properties JSON but are referenced in the execute method.

Output

The output is a JSON array containing the results returned by the API call corresponding to the selected resource and operation.

For the Text Regex operation, the output JSON will contain the matched results from applying the regex pattern to the input text. The exact structure depends on the external service response but typically includes matched substrings or groups.

If the node receives multiple input items, the output will be an array of results corresponding to each input.

No binary data output is indicated for this operation.

Dependencies

  • Requires an API key credential for authentication with the external 0CodeKit API service.
  • The node makes HTTP POST requests to endpoints structured as {resource}/{operation}, e.g., text/regex.
  • The node depends on internal helper functions (codeKitRequest) to communicate with the API.

Troubleshooting

  • Invalid regex pattern: If the regex pattern is malformed, the API may return an error. Ensure the regex syntax is correct.
  • Missing required parameters: The node expects certain parameters like text and expression (regex pattern). Omitting them will cause errors.
  • API authentication errors: Ensure the API key credential is correctly configured and valid.
  • Empty or unexpected output: Verify that the input text contains matches for the given regex pattern.

Common error messages will likely come from the API and should be handled by checking the error details returned.

Links and References


This summary is based solely on static analysis of the provided source code and property definitions.

Discussion