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
If we wanted to apply validations only with allowed character set then I tried with USERNAME_REGEX = /^(?:\s*[.\-_]*[a-zA-Z0-9]{1,}[.\-_]*\s*)$/;
., _ , - characters are also allowed but string must have one alphanumeric character.