امتیازها
113
راهحلها
27
- محل سکونت
- England
- نوشتهها
- 26,276
- تاریخ ثبتنام
- ۱۳۹۹٫۰۴٫۰۶
- پسندها
- 3,286
- سن
- 29
- وب سایت
- xenforo.xyz
- نسخه PHP
- 7.3
- نسخه زنفورو
- xenforo 2.2
I want to use a regular expression in the spam management "spam phrases" box, to automatically send all posts with a link or email in them to moderation. I asked chatgpt, but want to confirm it is correct. It gave me:
/(?i)(?:https?:\/\/\S+|www\.\S+|[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}|\b(?:[A-Za-z0-9-]+\.)+[A-Za-z]{2,}\b)
/(?i)(?:https?:\/\/\S+|www\.\S+|[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}|\b(?:[A-Za-z0-9-]+\.)+[A-Za-z]{2,}\b)
