Answers for "Regex all spaces"

0

regex to remove spaces

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

regex only letters not spaces

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

Browse Popular Code Answers by Language