Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

remove special characters from a string using java script

843838Jan 23 2006 — edited Jan 24 2006
suppose if i enter text in text box.IF i clicl ok button.
text should be contain only chararacters and numbers, reaming should be remove(eg:$%^&*() special charcters).
how to write code using java script.


eg:
input string
------------
�Hello%Wor;ld�
�,Piano!!!!!!!�
� Hi5 &*^%# �


but output should be like this
---------------
�HelloWorld�
�Piano�
�Hi5�
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 21 2006
Added on Jan 23 2006
4 comments
77 views