Last active
May 23, 2017 20:28
-
-
Save cjoshmartin/aa28ef2a62af099ddbde924179980219 to your computer and use it in GitHub Desktop.
removing extra space in a string in JS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var text ="ECE 32700 ENGINEERING ECONOMICS"; | |
text=text.replace(/ +(?= )/g,''); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment