Created
July 31, 2014 05:21
-
-
Save bizikov/9f596d2c79d611540bab to your computer and use it in GitHub Desktop.
Убрать все пробелы в строке
This file contains hidden or 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
// Удаляем все пробелы, используя | |
// регулярные выражения в JavaScript (RegEx): | |
var text3 = " a b c d e f g "; | |
var newText3 = text3.replace(/\s+/g, ''); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment