September 17th, 2002, 10:14 PM
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..
September 23rd, 2002, 03:47 PM
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..