It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming JavaScript Forum

how to ignore special characters using javascript

how to ignore special characters using javascript

Postby sundarraj_mca on Sat Jun 21, 2008 9:03 am

hai how to ignore special character using javascript
sundarraj_mca
 
Posts: 22
Joined: Wed May 14, 2008 5:06 am

Postby svmvishnu on Tue Jul 01, 2008 5:33 am

can u please explian the nature of the problem?
svmvishnu
 
Posts: 3
Joined: Mon Jun 30, 2008 6:31 pm

Postby MattoThePotatto on Mon Jul 14, 2008 8:17 am

You'd need to turn all the special characters into normal characters...
http://scripterlative.com/?noaccent

Good luck , :)
MattoThePotatto
 
Posts: 4
Joined: Wed Jun 25, 2008 7:20 am

Postby rafa_vigni on Wed Jul 30, 2008 10:47 am

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.
rafa_vigni
 
Posts: 2
Joined: Wed Jul 30, 2008 9:55 am


Who is online

Users browsing this forum: No registered users and 9 guests