SyntaxFix
Write A Post
Hire A Developer
Questions
If you are looking for empty string in addition to whitespace you meed to use * rather than +
var regex = /^\s*$/ ; ^