错误 preg_match (): Compilation failed
if (preg_match('/([\w\.\-_]+)?\w+\@[\w-_]+(\.\w+){1,}/s', $user['description'])) {
preg_match('/([\w\.\-_]+)?\w+\@[\w-_]+(\.\w+){1,}/s', $user['description'], $matches);
$user['email'] = $matches['0'];
}
错误提示:
- exception: “ErrorException”
- file: “/Applications/MAMP/htdocs/demo.com/app/GuzzleBuilder/ScrapyBuilder.php”
- line: 90
- message: “preg_match(): Compilation failed: invalid range in character class at offset 21”
在用laravel 7
请问一下有谁知道解决吗?
推荐文章: