Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

regex for username

let username = '';
username = username.replace(/s/g,'_');
username = username.replace(/-/g,'.');
username = username.match(/[a-zA-Z0-9.s]+/g).join('_');
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #regex #username
ADD COMMENT
Topic
Name
4+6 =