I need to write a regular expression for form validation that allows spaces within a string, but doesn\'t allow only white space.
For example - \'Chicago Heigh
\'Chicago Heigh
It's very simple: .*\S.*
.*\S.*
This requires one non-space character, at any place. The regular expression syntax is for Perl 5 compatible regular expressions, if you have another language, the syntax may differ a bit.