> For the complete documentation index, see [llms.txt](https://docs.threadwatcher.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.threadwatcher.xyz/features/core-features/advanced-filtering.md).

# Advanced Filtering

Advanced filtering can be used on `/batch` and `/auto` (and [monitors](/features/core-features/monitors.md) created on the web) to conditionally select what threads to watch or unwatch.&#x20;

Only threads that match **ALL** of the selected filters will be watched. Do note that if no value is configured for a filter (such as roles) that filter will be skipped.&#x20;

### Roles

Select one or more roles that the owner of the thread must have for Thread-Watcher to watch the thread.

### Tags

Select one or more forum tags that the post must have for Thread-Watcher to watch it. \ <sub><mark style="color:$info;">This is only accessible for forum channels<mark style="color:$info;"></sub>&#x20;

### Regex

You can use a [regex](https://en.wikipedia.org/wiki/Regular_expression) to select only threads whose name follow a certain pattern. More text needs to be added here tbh. Gotta do boring doc work before launching V3

#### Rejected Regex

To protect the bot from [ReDos](https://en.wikipedia.org/wiki/ReDoS) attacks we proactively screen any regex inputs. This might unfortunately erroneously catch some valid regex patterns.
