preg_match():找不到结尾的定界符"^" [英] preg_match(): No ending delimiter '^' found

查看:412
本文介绍了preg_match():找不到结尾的定界符"^"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

警告:preg_match():在第29行的.../functions/validations.php中找不到结尾定界符'^'

Warning: preg_match(): No ending delimiter '^' found in .../functions/validations.php on line 29

代码:

 if (preg_match($mail_pat, $email, $components)) {

我在哪里进行编辑?

推荐答案

基于Perl的正则表达式应位于分隔符内."/your regex here/" ..不建议使用的POSIX正则表达式是不需要任何分隔符的正则表达式.例如ereg( )

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(")

这篇关于preg_match():找不到结尾的定界符"^"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆