שלח תשובה

זירת השאלות

2 תשובות

  1. Deviation הגיב:

    ***באדיבות דגון***

    function checkEmail(strEmail){
    	return /^\w+@([\w\-]+\.)+\w{2,3}$/.test(strEmail);
    }
    
  2. אוריקס הגיב:

    וזה מתאים גם למיילים עם נקודה [למשל [email protected]]

    String.prototype.checkEmail = function(){
    	return /^(w((.)?)+)+w@([w-]+.)+w{2,3}$/.test(this);
    }
    
    alert("[email protected]".checkEmail());
    

שלח תשובה