Answers for "regex for no space"

0

regular expression not to allow space in javascript

var regexp = /^S*$/; // a string consisting only of non-whitespaces
Posted by: Guest on December-03-2020
1

regex only letters not spaces

var re = /^[A-Za-z]+$/;
Posted by: Guest on November-09-2020
-1

space allow in regex

Just add a space in your character class.

^[a-zA-Z0-9_ ]*$
Posted by: Guest on February-19-2021

Browse Popular Code Answers by Language