How to split email address to retrieve name only?
With javascript, how do we remove the @gmail.com or @aol.com from a string
so that what only remains is the name?
var string = "johndoe@yahoo.com";
Will be just "johdoe"? I tried with split but it did not end well. thanks.
No comments:
Post a Comment