preg_match("/(?<=<p\s*class=\"text15\">).*?(?=<\/p>)/", $html, $result);
报错
preg_match(): Compilation failed: lookbehind assertion is not fixed length at offset 24
是为啥呢?
就是\s*那里,php的正则不是这样写嘛?
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
http://php.net/manual/zh/regexp.reference.assertions.php