- Compatible XF 1.x versions
- 1.5
 
- License
- Creative Commons license
- Visible branding
- No
No download is needed 
___
Do you need regular expression to validate user's email?
Now you can do it, using a file edit
	
	
	
		
Find these lines :
	
	
	
		
Change as you wish, such as :
(this pattern is just a sample. Do not use it without knowing what it means)
	
	
	
		
					
					
	
		
	
					
					
					
___
Do you need regular expression to validate user's email?
Now you can do it, using a file edit

- Please backup the file before modifying
		Code:
	
	/library/XenForo/Helper/Email.phpFind these lines :
		PHP:
	
	    public static function isEmailValid($email)
    {
        $validator = new Zend_Validate_EmailAddress();
        $validator->getHostnameValidator()
            ->setValidateTld(false)
            ->setValidateIdn(false);
        return $validator->isValid($email);
    }Change as you wish, such as :
(this pattern is just a sample. Do not use it without knowing what it means)
		PHP:
	
	    public static function isEmailValid($email)
    {
        if ('' != $email) {
            $your_own_pattern = '/^([0-9]+)/iU';
            if (preg_match($your_own_pattern, $email)) {
                return false;
            }
        }
        $validator = new Zend_Validate_EmailAddress();
        $validator->getHostnameValidator()
            ->setValidateTld(false)
            ->setValidateIdn(false);
        return $validator->isValid($email);
    }

