ddliu / requery
Query text data with the power of Regular Expression.
Installs: 62
Dependents: 1
Suggesters: 0
Security: 0
Stars: 2
Watchers: 2
Forks: 0
Open Issues: 0
pkg:composer/ddliu/requery
This package is auto-updated.
Last update: 2025-10-14 01:04:43 UTC
README
Query text data with the power of Regular Expression.
Usage
use ddliu\requer\Context; $q = new Context($content); $q->find('#<table>.*</table>#Uis') ->then(function($table) { $table->findAll('#<th>(.*)</th>#Uis') ->each(function($th) { echo 'th: '.$th[1]."\n"; }); }) ->then(function($table) { $table->find('#<tbody>.*</tbody>#Uis')->findAll('#<tr>.*</tr>#Uis') ->each(function($tr) { $tr->findAll('#<td>(.*)</td>#Uis') ->each(function($td) { echo 'td: '.$td[1]."\n"; }); }); });