Regular Expressions 101

Community Patterns

my swear filter

0

Regular Expression
PCRE (PHP <7.3)

/
(\b(s|\$)+(\s?|\W?)+h+(\s?|\W?)+[i1îíīïì]+(\s?|\W?)+t+|\bf+(\s?|\W?)+([auûūüùú]?)+(\s?|\W?)+[]+(\s?|\W?)+k+|\b[]+(\s?|\W?)+[ûūüùúu]+(\s?|\W?)+n+(\s?|\W?)+t+|\bw+(\s?|\W?)+h+(\s?|\W?)+[o0]+(\s?|\W?)+r+(\s?|\W?)+e+|h+[0e]+e+)
/
gm

Description

a little regex i will plug into yagpdb to filter swears

Submitted by anonymous - 5 years ago