Symfony\Component\Finder\Iterator\FilecontentFilterIterator::toRegex
Converts string to regexp if necessary.
Signature
protected function toRegex(string
$str )
Parameters
$str
— string- Pattern: string or regexp
Returns
- string
- regexp corresponding to a given string or regexp