I'm using bootstrap validator but the email field accept "test@test". You can try it on my link. How can I do to fix that ? With the pattern attribute I can write a regex but I don't know do that.
I have already try this regex but all the emails are incorrect :
<?php 
    echo $this->tag->emailField(
        array(
            "email", 
            "class" => "form-control", 
            "data-error" => "incorrect address",
            "pattern" => '/^(([^<>()[\]\.,;:\s@\"]+(\.[^<>()[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$/i',
            "required" => "required"
        )
    );
?>
 
     
     
    