function regex ($regexp, $preg_flags = 0, $useKeys = false)
  {
    $this->setIterator (
      new RegexIterator ($this->getIterator (), $regexp, RegexIterator::ALL_MATCHES,
        $useKeys ? RegexIterator::USE_KEY : 0,
        $preg_flags)
    );
    return $this;
  }