# Blocking email address with regular expression not working

**URL:** <https://meta.discourse.org/t/blocking-email-address-with-regular-expression-not-working/186201>\
**Category:** Support\
**Created:** [April 9, 2021, 12:43pm UTC](https://meta.discourse.org/t/blocking-email-address-with-regular-expression-not-working/186201 "2021-04-09T12:43:53Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![devnull](https://avatars.discourse-cdn.com/v4/letter/d/c89c15/32.png) [@devnull](https://meta.discourse.org/u/devnull)\
**Post date:** [April 16, 2021, 1:50pm UTC](https://meta.discourse.org/t/blocking-email-address-with-regular-expression-not-working/186201/3 "2021-04-16T13:50:24Z")

</div>

Thanks! That’s working. Now another problem: Is it possible to use that RegEx for public posts only? Now it’s not possible to send mail-addresses through private messages as well. This is an unfortunate behavior.

---

_[View the full topic](https://meta.discourse.org/t/blocking-email-address-with-regular-expression-not-working/186201)._
