Migrated from talyssonoc/CommonRegexJS
CommonRegex port for PHP
Find a lot of kinds of common information in a string.
Pull requests welcome!
Please note that this is currently English/US specific.
composer require james2doyle/common-regex-php
Then somewhere in the code:
$parser = new CommonRegexPHP; $results = $parse('See you at 12:00AM on March 22nd 2018'); // returns [ // 'dates' => [ // 'March 22nd 2018', // ], // 'times' => [ // '12:00AM', // ], // ] // shorthand $results = (new CommonRegexPHP)('See you at 12:00AM on March 22nd 2018');
composer install
composer run test
There are CommonRegex ports for other languages, see here
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4