Answers for "regex string without 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
2

regex ignore spaces

s* ignore spaces
eg s*yourregexs*
Posted by: Guest on April-17-2020

Browse Popular Code Answers by Language