Hey everyone! It's been a while ^^
So I've run into a regex problem, it was never my strong point tbh, however, I've come across an issue I can't seem to find a solution to
Basically I'm using the following regex to check if a password meets the requirements, which are:
Contains a letter
Contains a number
Can use only A to Z, a to z, 0 to 9 and any of these in the password too:!@#$%.
What's going on? Heres line 81, and the error I'm getting.
elseif(preg_match('^(?=.*\d+)(?=.*[A-z])[0-9A-z!@#$%]$', $pwds['pwd'])!=1)
$problems['pwd']='Passwords must contain one letter and number. Also allowed: .!@#$%';
A PHP Error was encountered
Severity: Warning
Message: preg_match(): No ending delimiter '^' found
Filename: controllers/daemon.php
Line Number: 81
Thanks! Gergy.