4 ms·
I wrote a small python library for searching obfuscated Unicode text by creating regex expressions; our company’s chat was being overrun by spammers. https://g
by wanderingstan 3y ago
I wrote a small python library for searching obfuscated Unicode text by creating regex expressions; our company’s chat was being overrun by spammers.
https://github.com/wanderingstan/Confusables https://github.com/wanderingstan/Confusables
From the readme:
E.g. "℮1೦" would match "Hello"
"Hello" gets turned into the following regex of character classes:
[HHℋℌℍΗⲎНᎻᕼꓧ𐋏ⱧҢĦӉӇ]
[e℮eℯⅇꬲеҽɇҿ]
…
Edit: interesting that some versions of the letters are already being filtered by the commenting system here.