\b[nN][iI1!][gG6][gG6][eеE3][rR][sS]\b this regex pattern is used to moderate a discord…
- User
\b[nN][iI1!][gG6][gG6][eеE3][rR][sS]\b
this regex pattern is used to moderate a discord server against the “Hard R”. improve it to detect Substituting Similar-Looking Characters, Using Homoglyphs, Using Accents or Diacritics, Phonetic Manipulation, Leet Speak or Text Speech, Combining Upper and Lower Case and Unicode Characters.
- Assistant
Creating a regex pattern to comprehensively catch all potential variations of offensive terms, including the "Hard R" word, can be quite intensive due to the myriad ways users can obfuscate text. Here's an improved regex pattern that accounts for many common obfuscation techniques, including substituting similar-looking characters, using homoglyphs, accents or diacritics, phonetic manipulation, leet speak, combining upper and lower case, and Unicode characters.
\b[nNñÑńŃṇṆṁṂṁṁṀiİïÏìÌíÍîÎįĮì!1|;lL!ι][iİïÏìÌíÍîÎįĮì!1|;][gG6qQ][gG6qQ][eеÉêÊëËėĖèÈéÉëËēĒėĖ!3ɛæ][rR®ŕŔɾŖЯ][sSśŚšŠşŞșȘ]\bExplanation:
-
Character Variations:
- :
-
- Assistant
Certainly! Could you please provide more specific details or examples you're aiming to detect? This will help me refine and provide a more accurate and customized regex pattern.