# How to use Discourse regexes with watched words?

**URL:** <https://meta.discourse.org/t/how-to-use-discourse-regexes-with-watched-words/61522>\
**Category:** Product Support\
**Created:** [April 24, 2017, 9:25pm UTC](https://meta.discourse.org/t/how-to-use-discourse-regexes-with-watched-words/61522 "2017-04-24T21:25:19Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)\
**Post date:** [April 25, 2017, 12:29am UTC](https://meta.discourse.org/t/how-to-use-discourse-regexes-with-watched-words/61522/4 "2017-04-25T00:29:24Z")

</div>

> [@rizka](#):
>
> which regex flavor Discourse uses.

AFAIK, Ruby and Postgres support POSiX

> **[Class: Regexp (Ruby 2.2.0)](https://ruby-doc.org/core-2.2.0/Regexp.html)**
>
> Class : Regexp - Ruby 2.2.0

> **[9.7. Pattern Matching](https://www.postgresql.org/docs/9.3/functions-matching.html)**
>
> 9.7. Pattern Matching # 9.7.1. LIKE 9.7.2. SIMILAR TO Regular Expressions 9.7.3. POSIX Regular Expressions There are three separate approaches to …

---

_[View the full topic](https://meta.discourse.org/t/how-to-use-discourse-regexes-with-watched-words/61522)._
