Code:
 
    if ($regex($3-,/[[:cntrl:]]/g) > 49) { .signal -n d $1-2 codes } 
    if ($regex($3-,/[[:upper:]]/g) > 49) { .signal -n d $1-2 caps } 
    if ($regex($3-,/\d/g) > 49) { .signal -n d $1-2 number }
    if ($regex($3-,/[[:punct:]]/g) > 49) { .signal -n d $1-2 symbol } 
    if ($regex($3-,/[ $chr(174) ]/g) > 49) { .signal -n d $1-2 ascii } 
    if ($regex($3-,/[ $chr(160) ]/g) > 49) { .signal -n d $1-2 blur } 
    if ($regex($3-,/./g) > 199) { .signal -n d $1-2 lenght }
    if ($regex($3-,/(#|http://|www.|.com|.net|.org)/i)) { .signal -n d $1-2 advertise }
    if ($regex($3-,/\b(fucck|sck|shyit|btch)\b/i)) { .signal -n d $1-2 swear }


Can somebody give me diff way besides using $regex(with example). I need fastest way rather than using $regex. This is just a simple comparison so think besides using $regex there is other best way and hope somebody could gimme the example.