library requery
Query text data with the power of Regular Expression.
ddliu/requery
Query text data with the power of Regular Expression.
- Wednesday, December 17, 2014
- by ddliu
- Repository
- 2 Watchers
- 2 Stars
- 50 Installations
- PHP
- 1 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 3 Versions
- 0 % Grown
requery
Query text data with the power of Regular Expression., (*1)
Usage
use ddliu\requer\Context;
$q = new Context($content);
$q->find('#
#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";
});
});
});
dev-master
9999999-dev
Query text data with the power of Regular Expression.
Sources
Download
MIT
by
dong
v0.1.1
0.1.1.0
Query text data with the power of Regular Expression.
Sources
Download
MIT
by
dong
v0.1.0
0.1.0.0
Query text data with the power of Regular Expression.
Sources
Download
MIT
by
dong