Executes the given regular expression against the current URI and returns the first match.
If no parameters are provided, the full URI is returned.
php
grabFromCurrentUrl('~$/user/(\d+)/~');
$uri = $I->grabFromCurrentUrl();
?>
See also:
Codeception\Lib\InnerBrowser::grabFromCurrentUrl()