|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Generate data entry and reporting .NET Web apps in minutes, straight from your database. Read our FREE whitepaper “Build Web 2.0 Applications Without Hand-Coding” Download now! |
|
#1
|
|||
|
|||
|
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
|
|||
|
|||
|
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.. |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Java Help > check string for special chars |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|