1. No Profile Picture
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2002
    Rep Power

    check string for special chars

    how do i check to see if a string contains special chars such as "@#$%^&*()!";etc. and if the string does contain such chars, i want to remove them from the string. Note: REMOVE and not replace.

    codes would be very helpful.. thanks..
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2001
    Rep Power
    well, you stress NOT REPLACE like you know how to do that...

    if you do, then REPLACE the characters with an empty string "" .

    this will REMOVE them.

    just use the replace method provided in string.

    if this is not what you need, then please post something specific about why replace won't work for you..

IMN logo majestic logo threadwatch logo seochat tools logo