# Query di Data Explorer per avvisare i moderatori quando vengono pubblicati numeri di telefono nei messaggi privati

**URL:** <https://meta.discourse.org/t/data-explorer-query-to-alert-moderators-when-phone-numbers-are-posted-in-private-messages/159777>\
**Category:** Product Support\
**Created:** [4 Agosto 2020, 12:24pm UTC](https://meta.discourse.org/t/data-explorer-query-to-alert-moderators-when-phone-numbers-are-posted-in-private-messages/159777 "2020-08-04T12:24:22Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![neounix](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/neounix/32/215617_2.png) [@neounix](https://meta.discourse.org/u/neounix)\
**Post date:** [5 Agosto 2020, 8:58am UTC](https://meta.discourse.org/t/data-explorer-query-to-alert-moderators-when-phone-numbers-are-posted-in-private-messages/159777/10 "2020-08-05T08:58:51Z")

</div>

Ecco un esempio di REGEX per corrispondere ai numeri di telefono:

```plaintext
^[+]*[(]{0,1}[0-9]{1,4}[)]{0,1}[-\s\./0-9]*$

```

Ecco un altro:

```plaintext
^(\+\d{1,2}\s)?\(?\d{3}\)?[\s.-]\d{3}[\s.-]\d{4}$

```

Modifica come preferisci… Puoi testarla con un tester REGEX online, ce ne sono molti.

Spero ti sia utile

---

_[View the full topic](https://meta.discourse.org/t/data-explorer-query-to-alert-moderators-when-phone-numbers-are-posted-in-private-messages/159777)._
