Symfony\Component\Finder\Glob::toRegex
Returns a regexp which is the equivalent of the glob pattern.
Signature
public function toRegex(string
$glob,
[Boolean
$strictLeadingDot = true,
[Boolean
$strictWildcardSlash = true]] )
Parameters
$glob
— string- The glob pattern
$strictLeadingDot
— object
$strictWildcardSlash
— object
Returns
- string
- regex The regexp