Get Content $1.00 / 1,000 calls

Generated text by pattern

What this tool does

This tool helps you check if a pattern for matching text is written correctly. It is designed for people who need to create rules that look for specific sequences of characters in a text field. It lets you verify that your rule is syntactically valid before you use it in a larger system.

When to use it

  • Checking a new rule you wrote to ensure it has no mistakes.
  • Validating a rule copied from documentation before applying it.
  • Testing a rule to see what kind of sample text it would match.

What to expect

The tool returns a sample text string that fits your pattern. This sample shows you what a valid entry looks like according to your rule.

Limitations

  • The sample text is generated randomly and may not match every possible valid entry.
  • The tool does not check if your rule makes sense for your specific data; it only checks the format.
  • Complex rules might produce a sample that looks unusual or incomplete.

When it fails

  • The tool cannot parse your pattern if it contains invalid symbols or mismatched brackets.
  • The pattern might be too complex for the tool to generate a simple example.
  • The input text is missing or empty.

Good to know

  • You can copy the sample result to test your data against your rule manually.

Input data

Parameter Required Example Description
regex Yes [0-9]{,2}-[a-zA-Z]{2,3}-[A-Z]{2,5}-[0-9]{2}-[a-z]* Type a text pattern that defines the structure you want. For example, '[0-9]{,2}-[a-zA-Z]{2,3}' creates a format with up to two numbers, a hyphen, and then two to three letters. This field is required.

Output data

Field Description
result The generated sample text that matches your pattern, for example '5-AB' or '12-cde'.