Skip to content

Invalid internal use of preg_match_alll() #313

@chaslain

Description

@chaslain
PHP Warning 'yii\base\ErrorException' with message 'preg_match_all(): Compilation failed: invalid range in character class at offset 4'

in vendor/paquettg/php-html-parser/src/PHPHtmlParser/Selector.php:91

Code was this:

$file = file_get_contents($this->file_path);
$dom = new Dom;
$dom->loadStr($file, []);

$rows = $dom->find("tr");


php version: PHP 7.3.33 (cli) (built: Mar 18 2022 03:41:41) ( NTS )
Package version: 1.7.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions