> For the complete documentation index, see [llms.txt](https://infinitybot.gitbook.io/infinitybot-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://infinitybot.gitbook.io/infinitybot-docs/automatic-moderation/automod-dashboard-manager/regex-patterns.md).

# Regex Patterns

{% hint style="warning" %}
Regex Patterns are very advanced. We suggest you do not use them unless you know what you are doing, small mistakes in a pattern could prevent any message from being send in your server.
{% endhint %}

{% hint style="info" %}
Regex patterns can only be used in the [Custom Keyword](/infinitybot-docs/automatic-moderation/automod-dashboard-manager/custom-keywords.md) and [Member Profiles](/infinitybot-docs/automatic-moderation/automod-dashboard-manager/member-profiles.md) rules.&#x20;
{% endhint %}

A regex pattern is like a bunch of keywords all packed into one, to someone who does not know what they do, most regex patterns look like a cat walked over a keyboard.&#x20;

You can add regex patterns to your rule like normal keywords, as shown in the immage below:

<figure><img src="https://2255898787-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZqXmdaTQZknKkvcG0Uxz%2Fuploads%2FgUfNbxSPdJ9FYpLHmLoh%2Fimage.png?alt=media&amp;token=4dd3e3c4-a97f-4391-a150-996de5052d54" alt=""><figcaption></figcaption></figure>

### Generate Regex Patterns

For both the [Custom Keyword](/infinitybot-docs/automatic-moderation/automod-dashboard-manager/custom-keywords.md) and [Member Profiles](/infinitybot-docs/automatic-moderation/automod-dashboard-manager/member-profiles.md) rules we have created a regex generator. You can access it by pressing the "Generate a regex pattern" button below the keyword field.&#x20;

<figure><img src="https://2255898787-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZqXmdaTQZknKkvcG0Uxz%2Fuploads%2F28AlbsIodzSUY96Bxm3k%2Fimage%20(2).png?alt=media&amp;token=9a61dcbd-d4a4-44ef-b896-4d2070ad9132" alt=""><figcaption></figcaption></figure>

In the regex generator, you can either enter a word that you would like to block, or choose from regex templates. If you can't see some of the options, please make sure to scroll down on the window.&#x20;

<figure><img src="https://2255898787-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZqXmdaTQZknKkvcG0Uxz%2Fuploads%2FmBNh6kKVfKOStNg0mTyI%2Fimage.png?alt=media&amp;token=38ee1da4-319f-4682-a3e7-fafcd8b6a77c" alt=""><figcaption></figcaption></figure>

***

#### [Back to main AutoMod Dashboard page](/infinitybot-docs/automatic-moderation/automod-dashboard-manager.md)
