> For the complete documentation index, see [llms.txt](https://docs.datafakery.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.datafakery.io/fundamentals/generators-fakers/text-pattern.md).

# Text Pattern

## Faker Configuration

![](/files/QWZarx5HAZCuoAVHLmJJ)

* **Pattern**: Enter the pattern to generate the data. Patterns can include various placeholders:

<table><thead><tr><th width="136.33333333333331">Character</th><th>Description</th><th>Examples</th></tr></thead><tbody><tr><td>l</td><td>Lower-case letter</td><td>anjb</td></tr><tr><td>L</td><td>Upper-case letter</td><td>ANJB</td></tr><tr><td>n</td><td>Number</td><td>1324</td></tr><tr><td>s</td><td>Special Character</td><td>-#*@</td></tr><tr><td>_</td><td>space character (underscore)</td><td> </td></tr><tr><td>*</td><td>Any character</td><td>aB9+</td></tr><tr><td>\</td><td>Escape character</td><td></td></tr></tbody></table>

* **Add Suffix**: Enter any additional suffix to append to the generated data (optional).
* **Replace only if Non-Null**: Check this box to ensure that the faker only replaces non-null values in the column. If unchecked, it will replace all values, including nulls.

## Example Configuration

![](/files/QWZarx5HAZCuoAVHLmJJ)

A pattern like `Ll*_n-##nn` leads to these results

![](/files/PG4kRXe9DWtrytqtEDXC)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.datafakery.io/fundamentals/generators-fakers/text-pattern.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
