Generated text by pattern
What this tool does
This tool creates a random sample of text that fits the pattern you describe. You provide a pattern using common text symbols, and the platform generates one possible example of text that matches it.
Please note that the generated text is a simple example created locally. It is not a real-world value checked against any database or live service, nor does it validate if the pattern is logically sound beyond basic syntax.
Common uses
- Testing forms or data entry fields to see if they accept specific text formats.
- Generating dummy data for prototypes or design mockups.
- Checking if a text pattern is syntactically valid by seeing if a sample can be produced.
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'. |