0CodeKit icon

0CodeKit

A toolbox of no-code utilities

Actions132

Text → Contains Check

AI-generated

Overview

The "Contains Check" operation under the "Text" resource in this node allows you to determine if a given text contains one or more specified keywords or patterns. It supports options for case sensitivity and matching only complete words, making it useful for text validation, filtering, or conditional workflows where presence of certain terms triggers further actions.

Common scenarios:

  • Checking if an email body contains specific phrases before sending an alert.
  • Filtering product descriptions that mention particular features.
  • Validating user input for required keywords or prohibited terms.
  • Searching logs or documents for occurrences of important keywords.

Example:
You want to verify if the sentence "The quick brown fox jumps over the lazy dog" contains the word "fox". Using this node, you can set the text to search as the sentence and the keyword as "fox". The node will return whether the keyword is found according to your case sensitivity and whole word settings.

Properties

Name Meaning
Text to Search The main text string within which the search will be performed.
Keyword to Search A single word or pattern to look for inside the text.
Multiple Keywords Additional keywords or patterns to search for; allows specifying multiple search strings.
Case Sensitive Whether the search should distinguish between uppercase and lowercase letters (true/false).
Only Complete Words Whether to match only whole words rather than substrings within words (true/false).

Output

The node outputs JSON data indicating whether the specified keyword(s) are contained within the provided text. Typically, the output includes a boolean result for each keyword checked, showing true if found and false otherwise.

If multiple keywords are provided, the output reflects the presence status for each keyword individually.

No binary data output is involved in this operation.

Dependencies

  • Requires an API key credential for authentication with the external 0CodeKit service.
  • The node sends a POST request to the /text/contains endpoint of the 0CodeKit API.
  • No additional environment variables or configurations are needed beyond the API key setup.

Troubleshooting

  • Empty or missing text input: The node requires the "Text to Search" property to be non-empty. Ensure this field is correctly populated.
  • No keywords specified: At least one keyword must be provided either via the single keyword field or the multiple keywords collection.
  • Case sensitivity confusion: If results seem unexpected, verify the "Case Sensitive" option matches your intended search behavior.
  • Whole word matching issues: When "Only Complete Words" is enabled, partial matches won't be detected. Disable this if substring matches are desired.
  • API errors: Network issues or invalid API keys will cause request failures. Confirm the API key is valid and the network connection is stable.

Links and References

Discussion