Search Results

  1. Create a new RegexIterator

  2. RegexIterator::__construct (PHP 5 >= 5.2.0, PHP 7, PHP 8) RegexIterator::__construct — Create a new RegexIterator

  3. RegexIterator is a built-in PHP class that filters iterators using regular expressions. It's particularly useful for filtering file listings, array elements, or any iterable data based on pattern matching.

  4. The RegexIterator class Introduction (PHP 5 >= 5.2.0, PHP 7) This iterator can be used to filter another iterator based on a regular expression. Class synopsis RegexIterator extends FilterIterator { /* Constants */ const int MATCH = 0 ; const int GET_MATCH = 1 ; const int ALL_MATCHES = 2 ; const int SPLIT = 3 ; const int REPLACE = 4 ; const int USE_KEY = 1 ; /* Methods */ public __construct ...

  5. Create a new RegexIterator which filters an Iterator using a regular expression.

  6. Creates a new RegexIterator that filters all strings that start with 'test'.

  7. Jan 28, 2016 · I have yet to find a good example of how to use the php RegexIterator to recursively traverse a directory. The end result would be I want to specify a directory and find all files in it with some