Query: regexiterator
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
REGEXITERATOR(3) 1 REGEXITERATOR(3) The RegexIterator classINTRODUCTIONThis iterator can be used to filter another iterator based on a regular expression.CLASS SYNOPSISRegexIterator RegexIteratorextends FilterIterator Constants o const integer$MATCH0 o const integer$GET_MATCH1 o const integer$ALL_MATCHES2 o const integer$SPLIT3 o const integer$REPLACE4 o const integer$USE_KEY1 Methods o public RegexIterator::__construct (Iterator $iterator, string $regex, [int $mode = self::MATCH], [int $flags], [int $preg_flags]) o public bool RegexIterator::accept (void ) o public int RegexIterator::getFlags (void ) o public int RegexIterator::getMode (void ) o public int RegexIterator::getPregFlags (void ) o public string RegexIterator::getRegex (void ) o public void RegexIterator::setFlags (int $flags) o public void RegexIterator::setMode (int $mode) o public void RegexIterator::setPregFlags (int $preg_flags) Inherited methods o publicabstract bool FilterIterator::accept (void ) o public FilterIterator::__construct (Iterator $iterator) o public mixed FilterIterator::current (void ) o public Iterator FilterIterator::getInnerIterator (void ) o public mixed FilterIterator::key (void ) o public void FilterIterator::next (void ) o public void FilterIterator::rewind (void ) o public bool FilterIterator::valid (void )PREDEFINED CONSTANTSREGEXITERATOR OPERATION MODESo RegexIterator::ALL_MATCHES - Return all matches for the current entry (see preg_match_all(3)). o RegexIterator::GET_MATCH - Return the first match for the current entry (see preg_match(3)). o RegexIterator::MATCH - Only execute match (filter) for the current entry (see preg_match(3)). o RegexIterator::REPLACE - Replace the current entry (see preg_replace(3); Not fully implemented yet) o RegexIterator::SPLIT - Returns the split values for the current entry (see preg_split(3)).REGEXITERATOR FLAGSo RegexIterator::USE_KEY - Special flag: Match the entry key instead of the entry value. PHP Documentation Group REGEXITERATOR(3)
Related Man Pages |
---|
arrayiterator(3) - php |
arrayobject(3) - php |
cachingiterator(3) - php |
callbackfilteriterator(3) - php |
reflectionmethod(3) - php |
Similar Topics in the Unix Linux Community |
---|
Random Access Iterator Error |