Expresión regular no permitir espacio en JavaScript
var regexp = /^\S*$/; // a string consisting only of non-whitespaces
Indian Gooner
var regexp = /^\S*$/; // a string consisting only of non-whitespaces