<?php public static function toRegEx($glob, $flags = 0, $delimiter = '~')
{
if (!Path::isAbsolute($glob) && false === strpos($glob, '://')) {
throw new InvalidArgumentException(sprintf(
'The glob "%s" is not absolute and not a URI.',
$glob
));
}
$inSquare = false;