Anonymous ID: 5e0343 July 25, 2018, 8:35 p.m. No.2291186   🗄️.is 🔗kun   >>1218

>>2291100

 

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.