1. Go to this page and download the library: Download jeroenvanderlaan/regexp library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
jeroenvanderlaan / regexp example snippets
$matcher = new Matcher();
$regexp = new Regexp("(exam)ple");
$match = $matcher->match($regexp, "An example string");
$match->getSubject(); //"An example string"
$match->getMatch(); //"example"
$match->getOffset(); //3
$match->getGroups()[0]->getMatch(); //"exam"