FilecontentFilterIterator
class FilecontentFilterIterator extends MultiplePcreFilterIterator
FilecontentFilterIterator filters files by their contents using patterns (regexps or strings).
Properties
protected | $matchRegexps | from MultiplePcreFilterIterator | |
protected | $noMatchRegexps | from MultiplePcreFilterIterator |
Methods
bool
isAccepted(string $string)
Checks whether the string is accepted by the regex filters.
string
toRegex(string $str)
Converts string to regexp if necessary.
bool
accept()
Filters the iterator values.