Warning: preg_match(): No ending delimiter '^' found in .../functions/validations.php on line 29
The code:
if (preg_match($mail_pat, $email, $components)) {
What and where do I make the edit?
Perl based regex should be inside the delimeters.. "/your regex here/"
.. the deprecated POSIX regex were the one which did not require any delimeter.. eg ereg(")
You must add delimiters to your regex:
if (preg_match('/' . $mail_pat . '/', $email, $components)) {
$mail_pat starts with a ^
but ends with another character, which causes the error since there are no matching delimiters.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With