$matchRegexps
$matchRegexps :
PathFilterIterator filters files by path patterns (e.g. some/special/dir).
isAccepted(string $string) : boolean
Checks whether the string is accepted by the regex filters.
If there is no regexps defined in the class, this method will accept the string. Such case can be handled by child classes before calling the method if they want to apply a different behavior.
string | $string | The string to be matched against filters |
toRegex(string $str) : string
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).
string | $str | Pattern: regexp or dirname |
regexp corresponding to a given string or regexp