Possible Duplicate:
Remove all multiple spaces in Javascript and replace with single space
How can I replace, for instance this:
" "
" "
" "
" "
with
" "
How can I replace all the empty space characters with a single empty char using regex?