View Single Post
Vm|Mayhem
Senior Member
Join Date: Feb 2005
Location: Murrieta, CA.
Old 07-09-2009 , 01:49   Re: Restrict Names 1.2a
Reply With Quote #291

Quote:
Originally Posted by Brad View Post
You can make it less effective but have a lower rate of false positives by escaping the periods, making them literal.

i.e.
Code:
\b\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\b
That will stop "216.52.148.47", but it won't stop "216,52,148,47", or any other creative variation that still gets the player's point across.
Thanks Brad.
__________________
Vm|Mayhem is offline
Send a message via AIM to Vm|Mayhem