Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

regular expression not to allow space in javascript

var regexp = /^S*$/; // a string consisting only of non-whitespaces
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #regular #expression #space #javascript
ADD COMMENT
Topic
Name
3+5 =