I can get the part [a-z0-9]*from [a-z0-9]*@example.comwith regex, but I want to limit the part to [a-z0-9]*20 characters. Is this possible with regex?
Edit: I changed my mind, I will not use {0,20}, insted I will use strlen(). This:if (preg_match('/[a-z0-9]*@metu\.edu\.tr/',$_POST['email']) && strlen($_POST['email']) < 35)
ilhan source
share