Javascript String GetEmailUsername()
GetEmailUsername()
String.prototype.GetEmailUsername = function () { if (this.IsEmail()) { return this.split('@')[0]; }//w w w . j ava2 s . com return false; }