Sunday, March 11, 2018

How to remove contiguous spaces in a string?

I'm trying to create a function that erase doubles spaces in a string.

Such as "My name is Marcus" To "My name is Marcus" 

Using only Arrays and the split(). Don't want to use regex and regular expression.

Can this be done?

How to remove contiguous spaces in a string? Click here
  • Blogger Comment
  • Facebook Comment

0 comments:

Post a Comment

The webdev Team