Symfony\Component\Finder\Iterator\FilenameFilterIterator::toRegex
Converts glob to regexp.
PCRE patterns are left unchanged. Glob strings are transformed with Glob::toRegex().
Signature
protected function toRegex(string
$str )
Parameters
$str
— string- Pattern: glob or regexp
Returns
- string
- regexp corresponding to a given glob or regexp