Anonymous ID: 81f9c0 July 25, 2018, 8:38 p.m. No.2291238   🗄️.is 🔗kun   >>1258 >>1507

Anons, here is a short tutorial on how to write your own anti-larp filter.

 

First, start from the R filter

 

^R.?\s.|.\sR.?\s.|.\sR.?$

 

We'll replace the R with some larper name, like say slappy.

 

they can capitalize this or not capitalize this, and do all kinds of wierd shit with it. so lets narrow it down a little with some character classes (case insensitivity doesn't work)

 

[Aa] for example is a simple character class that covers upper and lowercase A. You can google and read up on these later. Lets continue with slappy.

 

Slappy -[Ss]lappy. This will cover slappy and Slappy, but not SLAPPY,

 

[Ss][Ll][Aa][Pp][Pp][Yy] This will cover all capitalization, but they can misspell a few ways,

 

[Ss][Ll][AaEe][Pp][Pp][YyIi]

 

This covers permutations of slappy, sleppy and sleppi. But what if they decide to forget a P?

 

We can use the ? to make one optional. Just place it after any of the

 

[Ss][Ll][AaEe][Pp][Pp]?[YyIi]

 

Now lets just paste it into the original

 

^[Ss][Ll][AaEe][Pp][Pp]?[YyIi].?\s.|.\s[Ss][Ll][AaEe][Pp][Pp]?[YyIi].?\s.|.\s[Ss][Ll][AaEe][Pp][Pp]?[YyIi].?$

 

God Its as ugly as hell. Go test it at an online regex site first to make sure you didn't screw up before you paste it into your comment filter.

Anonymous ID: 81f9c0 July 25, 2018, 8:57 p.m. No.2291507   🗄️.is 🔗kun

>>2291238

 

Now, if you're having some trouble with some unicode; like with diacritics or umlauts or some shit. cut and paste it into a text editor like notepad. It will usually separate out into the composite characters

 

"B҉ụt ỳ҉ou҉҉ do ҉in fact"

becomes more readable like

"B ҉ ụ t ỳ ҉ o u ҉ ҉ d o ҉ i n f a c t"

 

Take out the offending letter and make that part of your regex (or the regex itself)

 

҉

 

or throw the letters into a character class and filter them all together. who cares about people using accents in american english.

 

[҉ŔÓŚáṕćḱńḿóṕéúĺíḉýẃĘṮąǫơşọǫųęȩḏņìàèòņĺṵţǫḅęķḑŗálsóȩį]