Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1372行 if (!preg_match("/^[\w-:]+$/", $tag)) { 错误 #17

Open
wengxianxun opened this issue Dec 29, 2019 · 1 comment
Open

1372行 if (!preg_match("/^[\w-:]+$/", $tag)) { 错误 #17

wengxianxun opened this issue Dec 29, 2019 · 1 comment

Comments

@wengxianxun
Copy link

WARNING: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/ymserver/vhost/ios_wall_ads/spider/protected/simplehtmldom/simple_html_dom.php on line 1372

提示这个错误,怎么解决呢?

@healthlynked
Copy link

PHP 7.3 and above you need to escape hyphen to make it work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants