12 namespace Symfony\Component\Finder\Iterator;
29 if (!$this->matchRegexps && !$this->noMatchRegexps) {
33 $fileinfo = $this->current();
35 if ($fileinfo->isDir() || !$fileinfo->isReadable()) {
39 $content = $fileinfo->getContents();
45 foreach ($this->noMatchRegexps as $regex) {
46 if (preg_match($regex, $content)) {
53 if ($this->matchRegexps) {
55 foreach ($this->matchRegexps as $regex) {
56 if (preg_match($regex, $content)) {
74 return $this->
isRegex($str) ? $str :
'/'.preg_quote($str,
'/').
'/';