Symfony\Component\Finder\Iterator\PathFilterIterator::toRegex
Converts strings to regexp.
PCRE patterns are left unchanged. Default conversion: 'lorem/ipsum/dolor' ==> 'lorem\/ipsum\/dolor/' Use only / as directory separator (on Windows also).
Signature
protected function toRegex(string
$str )
Parameters
$str
— string- Pattern: regexp or dirname.
Returns
- string
- regexp corresponding to a given string or regexp