# When watched words regular expressions is true, watched words does not allow uppercase regex

**URL:** <https://meta.discourse.org/t/when-watched-words-regular-expressions-is-true-watched-words-does-not-allow-uppercase-regex/77006>\
**Category:** Bug\
**Created:** [2017年十二月31日 06:33 UTC](https://meta.discourse.org/t/when-watched-words-regular-expressions-is-true-watched-words-does-not-allow-uppercase-regex/77006 "2017-12-31T06:33:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![schungx](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/schungx/32/70989_2.png) [@schungx](https://meta.discourse.org/u/schungx)\
**Post date:** [2017年十二月31日 06:33 UTC](https://meta.discourse.org/t/when-watched-words-regular-expressions-is-true-watched-words-does-not-allow-uppercase-regex/77006/1 "2017-12-31T06:33:34Z")

</div>

Repo:

1. Turn Site Settings \> watched words regular expressions ON
2. Go to Logs \> Watched Words; notice it says `regular expression` in the placeholder of the input box
3. Add `somebadword\S*`
4. The word added is `somebadword\s*` instead of `somebadword\S*` which is completely wrong. The meta letter `\S` should never be lower-cased.

---

<div class="post-metadata">

**Author:** ![neil](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/neil/32/102150_2.png) [@neil](https://meta.discourse.org/u/neil)\
**Post date:** [2018年一月9日 22:18 UTC](https://meta.discourse.org/t/when-watched-words-regular-expressions-is-true-watched-words-does-not-allow-uppercase-regex/77006/3 "2018-01-09T22:18:09Z")

</div>

I fixed this today. Thanks for reporting it.

---

<div class="post-metadata">

**Author:** ![neil](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/neil/32/102150_2.png) [@neil](https://meta.discourse.org/u/neil)\
**Post date:** [2018年一月9日 22:18 UTC](https://meta.discourse.org/t/when-watched-words-regular-expressions-is-true-watched-words-does-not-allow-uppercase-regex/77006/4 "2018-01-09T22:18:14Z")

</div>


