Recently I've been trying to remove all instances of double spaces from a string. i.e. if I have a string, I want to return "Test Me"Please Login or Register to view this content.
I tried using the Replace function but I was surprised by the result. (Code provided at bottom of post to demonstrate)
QUESTIONS:
- Why doesn't Replace remove all double spaces?
- Since Replace doesn't do what I want it to, what can I use instead?
DEMONSTRATION OF REPLACE NOT REMOVING ALL DOUBLE SPACES
Please Login or Register to view this content.
Bookmarks