Answers for "how to choose space or hypen in regex"

3

only letters and spaces regex

/^[a-zA-Zs]*$/g
Posted by: Guest on April-12-2021
-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