Raised This Month: $32 Target: $400
 8% 

need help with RegEx (censor chat stuff)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
AeroAcrobat
AlliedModders Donor
Join Date: Apr 2011
Location: lives in a circus
Old 07-13-2012 , 20:55   need help with RegEx (censor chat stuff)
Reply With Quote #1

Hi,

I'm using theSimple Chat Filter Plugin but my list is like this:
BadWord
BadWord
BadWord

lately I had the problem that the word "minigame" was consored (******) and it was because it contains the N word minigame.

I've tried also some stuff from the site below but I was not able to get that what I'd like to have.
http://gskinner.com/RegExr/

If someone could help me to censor the following:
- IP + IP:port
- N. word (various writing styles)
- noob (various writing styles e.g.: n00b etc.)

for IP:port I've used this: /((2[0-4]\d|25[0-5]|[01]?\d\d?)\.){3}(2[0-4]\d|25[0-5]|[01]?\d\d?):\d{4}/

but did not worked :/

I would be very happy if someone could help me with this
__________________
AeroAcrobat is offline
minimoney1
SourceMod Donor
Join Date: Dec 2010
Old 07-13-2012 , 21:25   Re: need help with RegEx (censor chat stuff)
Reply With Quote #2

Take a look at IP Chat Block for the regex pattern. I don't know if you need use double backslashes or not in the config, but just turn all the '//' to '/' in the regex for IP Chat Block and you should be fine.
minimoney1 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 16:33.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode