| View previous topic :: View next topic |
| Author |
Message |
sundarraj_mca
Joined: 14 May 2008 Posts: 19
|
Posted: Sat Jun 21, 2008 10:03 am Post subject: how to ignore special characters using javascript |
|
|
| hai how to ignore special character using javascript |
|
| Back to top |
|
 |
|
|
svmvishnu
Joined: 30 Jun 2008 Posts: 3
|
Posted: Tue Jul 01, 2008 6:33 am Post subject: Re: how to ignore special characters using javascript |
|
|
| can u please explian the nature of the problem? |
|
| Back to top |
|
 |
MattoThePotatto
Joined: 25 Jun 2008 Posts: 4
|
Posted: Mon Jul 14, 2008 9:17 am Post subject: Re: how to ignore special characters using javascript |
|
|
You'd need to turn all the special characters into normal characters...
http://scripterlative.com/?noaccent
Good luck ,  |
|
| Back to top |
|
 |
rafa_vigni
Joined: 30 Jul 2008 Posts: 2
|
Posted: Wed Jul 30, 2008 11:47 am Post subject: Re: how to ignore special characters using javascript |
|
|
var removStr = new String();
removStr = "some data with whitespaces, tabs, newlines etc..";
removStr.replace(/\B\s\B|[\n\r\t]/g,'');
Use a regular expressino like this. This will remove all new line chars, whitespaces, tabs etc..with a space.
Like this you can specify all your special chars.
I think this might give you a hint. |
|
| Back to top |
|
 |
|