Regular Expressions 101

Community Patterns

Automod - Discord scam invitations

1

Regular Expression
PCRE (PHP <7.3)

/
(?i)\d\d\+ boys only|wow only \d\d\+|only \d\d\+ (?:boys|allowed)|\d\d\+ only boys|boys only \d\d\+|(?:Onlyfans|teen|NSFW|nude).* l[3e][4a]ks*?|(?:underage|T[3e]{2}n||18\+) (?:nudes|content ?(?:discord|l[3e][4a]ks*?|here)*?|p[0o]*?rn|pr[0o]*?n)|l[3e]{2}[4a\*]*?k (?:Onlyfans|teen|NSFW|nude)
/
gm

Description

Matches variations of messages commonly used to send Discord scams/hacks.

Instructions are written for YAGPDB

Submitted by paiuxfluens - a month ago