I have tp develop a javascript function with string parameter value which has to search the input parameter contains the following special character like (® ´ © ¿ ¡ ° À & ~ : ? ! # * ^ < > ´ | %). What is best way in javascript to do the above scenario?. Thanks in advance.
-
Are there other special characters you need to search for? ☃, 百, etc... How do you define "special character"?Mark Byers– Mark Byers2010-06-08 06:04:01 +00:00Commented Jun 8, 2010 at 6:04
-
How would you go about searching for a "normal" character? What breaks with those "special" characters?Dominic Rodger– Dominic Rodger2010-06-08 06:04:19 +00:00Commented Jun 8, 2010 at 6:04
Add a comment
|
1 Answer
You can find the answer to this in this other post: Alt attribute encoding with JavaScript