0

Hello

I want to remove this:

As you see it is a blank but the regular variable.replace(/\s+/g,''); does not work. I generate this character with Alt+0160 The best way would be its ascii code so how do I do it?

3
Contributors
5
Replies
10
Views
4 Years
Discussion Span
Last Post by riahc3
0

taking the plus out would replace all whitespace chars with nothing

variable.replace(/\s/g,"");

if it's not working maybe there's something in the code surrounding this that needs debugging.

0

taking the plus out would replace all whitespace chars with nothing variable.replace(/\s/g,""); if it's not working maybe there's something in the code surrounding this that needs debugging.

It doesnt work for that character

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.