toRegex()
toRegex(string $glob, boolean $strictLeadingDot = true, boolean $strictWildcardSlash = true, string $delimiter = '#') : string
Returns a regexp which is the equivalent of the glob pattern.
Parameters
string | $glob | The glob pattern |
boolean | $strictLeadingDot | |
boolean | $strictWildcardSlash | |
string | $delimiter | Optional delimiter |
Returns
string —regex The regexp