KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I am looking for a javascript regex for whitespace. I am checking several different string in a loop and I need to locate the strings that have the big white space in them. The white space string is built in a loop, like this... please read this code as var whitespace = " " then the loop just concats more non breaking spaces on it. var whitespace = " " for (var x = 0; x < 20; x++) { whitespace += " " } then it is used later on in a string concat. sometext += whitespace + someData; I need to identify the strings that contain whitespace (20 spaces). Or should I just be doing a contains(whitespace) or something similar. Any help is appreciated. Cheers, ~ck in San Diego
Tags (comma-separated)
Save Edits
Cancel