Check Data quality $1.00 / 1,000 calls

String is valid by pattern

What this tool does

This tool checks whether a piece of text fits a specific rule. The rule is defined by a pattern you provide. It helps you ensure that your data follows the format you expect.

When to use it

  • Checking if a user input matches a specific format like a code or ID.
  • Validating that a description contains certain keywords.
  • Ensuring a field follows a strict structure before saving it.
  • Filtering text entries based on simple text patterns.

What to expect

You will get a simple yes or no answer. The result tells you if the text matched the pattern or not.

Limitations

  • The check depends entirely on the pattern you provide. An incorrect pattern will give an incorrect result.
  • The matching is case-insensitive, so uppercase and lowercase letters are treated the same way.
  • It only checks if the pattern exists within the text, not necessarily at the very start or end.

When it fails

  • The pattern you provided is not valid syntax.
  • The text input is completely empty.

Good to know

  • If the pattern is invalid, the tool returns a 'no' answer instead of showing an error message.

Input data

Parameter Required Example Description
text Yes test Enter the text you want to check (required). Example: 'user name 123'.
regex Yes ^test$ Enter the pattern rules to search for, using standard search pattern syntax (required). Example: '^test$'.

Output data

Field Description
result A yes/no indicator showing if the pattern was found in the text. Example: true.