Wyrażenie regularne, aby nie pozwolić na przestrzeń w JavaScript

var regexp = /^\S*$/; // a string consisting only of non-whitespaces
Indian Gooner