# 监控单词的正则表达式：单词边界未按预期工作

**URL:** <https://meta.discourse.org/t/watched-words-regex-word-boundary-not-working-as-expected/78813>\
**Category:** Bug\
**Created:** [2018 年1 月 23 日 21:57 UTC](https://meta.discourse.org/t/watched-words-regex-word-boundary-not-working-as-expected/78813 "2018-01-23T21:57:47Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

作者： ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)\
发布日期： [2018 年1 月 24 日 01:14 UTC](https://meta.discourse.org/t/watched-words-regex-word-boundary-not-working-as-expected/78813/2 "2018-01-24T01:14:19Z")

</div>

Are we 100% sure the `watched words regular expression` site setting was flipped to true?

If that is at its default (false) then watched words wouldn’t be regular expressions at all, but also it wouldn’t be matching as it is in your screenshot … so I’m not sure. @neil?

I also can’t repro this on my instance of discourse @awesomerobot :

- turn on `watched words regular expression`
- enter `\bass\b` in censored section
- I see correct [word boundary only](https://www.regular-expressions.info/wordboundaries.html) censoring

---

_[View the full topic](https://meta.discourse.org/t/watched-words-regex-word-boundary-not-working-as-expected/78813)._
