Comment Comment by austincheney Isn't this the very kind of thing Regular Expressions were created to solve?* Remove spaces - myString.replace(/\u0020+/g, "");* Remove common line terminators - myString.replace(/(\r|\n)+/g, "");* Remove all white space - myString.replace(/\s+/g, ""); parent austincheney 9 years ago
* Remove spaces - myString.replace(/\u0020+/g, "");
* Remove common line terminators - myString.replace(/(\r|\n)+/g, "");
* Remove all white space - myString.replace(/\s+/g, "");