Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to get first and last name from email js regex

// for example rokas.byrookas@byrookas.com
const firstname = a.slice(0,a.indexOf('@')).split('.')[0]
const Lastname = a.slice(0,a.indexOf('@')).split('.')[a.slice(0,a.indexOf('@')).split('.').length - 1]
 
PREVIOUS NEXT
Tagged: #email #js #regex
ADD COMMENT
Topic
Name
1+4 =