I am trying to check if a string contain at least, a min, a maj and a number.
m2A is Ok
m2a is not Ok.
But when I try this:
$test = "m2A";
$regex = '^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)$';
preg_match($regex,$test,$matches);
var_dump($matches);
I've got an error
preg_match(): No ending delimiter '^' found
I can't see what is wrong with this