Answers for "regex to check that there are no spaces"

2

regex to remove spaces

//..
return str.replace(/\s/g, '');
//..
Posted by: Guest on October-06-2020
4

regex only letters not spaces

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

Code answers related to "regex to check that there are no spaces"

Code answers related to "Javascript"

Browse Popular Code Answers by Language