# Regular Expressions

Our dictionary also supports Regular Expressions (RegEx) for replacements, allowing you to define flexible and powerful patterns to match and modify text. With RegEx, you can target specific formats, such as numbers (`\d+`), words (`\w+`), or any sequence of characters (`.*`), making text manipulation more efficient and versatile.

{% hint style="info" %}
Our dictionary recognizes RegEx only when it is enclosed between `/` and `/`. Otherwise, it is interpreted as a regular word.
{% endhint %}

<figure><img src="/files/2jgLGwT0wZqjdKJEfhBb" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: 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.bottalk.io/docs/features/dictionaries/regular-expressions.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.
