Debt Consolidation - Debt Consolidation - Loans - Pinnacle Sports Review - Debt Consolidation

PDA

View Full Version : How to remove white spaces in between a string


Himi
Oct 6th 2007, 4:05 am
Hi,
Can some one please tell me the regexp in javascript
to remove white spaces from between a string.
and then convert the upper case charecters to lower case.

I have a string of the format :

AAAAAA AAAAA AAAAA#AAAAA AAAAA#AAA AAAA AAAA#

Thanks,
Himi

ezpz
Oct 6th 2007, 2:16 pm
Try

string.replace(/\s/g, "");
string.toLowerCase();

temp2
Oct 7th 2007, 6:19 am
that's good job, thank