In a support thread titled ‘Data explorer query to alert moderators when phone numbers are posted in private messages,’ jrgong requests a solution to detect phone numbers in private messages to protect user privacy, offering a $50 budget with a deadline of August 15. pfaffman presses for a precise definition of what constitutes a phone number, noting that ambiguity could escalate costs. jrgong clarifies: any sequence starting with ‘+49’ or ‘0’, followed by 10+ digits, ignoring special characters. codinghorror suggests using Discourse’s built-in ‘Watched Words’ with regex, cautioning about complexity. neounix provides two regex patterns for phone number matching and links to a tester site regexr.com/3c53v. jrgong asks how to exclude numbers with 8 digits or fewer — a refinement left for implementation. The topic is closed after jrgong confirms they’ll test the regex approach.
Pretty sure this can already be done with Admin, Logs, Watched Words in regex mode. You will need to be very very careful in how you construct that regex.