Ruphaa's Notes
← Go Back
How to use regex to validate if the string contains only numbers, alphabets, space and underscore
js
regex
let
regex
=
/
^[a-zA-Z0-9_\s]*$
/
g
;