email - skynocover/regex GitHub Wiki

ip

ip checker

  • js
const isEmail=(strEmail: string)=> {
  if (strEmail.search(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z]+$/) != -1)
    return true;
  else return false;
}