function addPattern($pattern, $label = true) {
            $count = count($this->_patterns);
            $this->_patterns[$count] = $pattern;
            $this->_labels[$count] = $label;
            $this->_regex = null;
        }
function addPattern($pattern, $label = true) {
            $count = count($this->_patterns);
            $this->_patterns[$count] = $pattern;
            $this->_labels[$count] = $label;
            $this->_regex = null;
        }
function addPattern ( $ pattern , $ label = true ) { $ count = count ( $ this -> _patterns ) ; $ this -> _patterns [ $ count ] = $ pattern ; $ this -> _labels [ $ count ] = $ label ; $ this -> _regex = null ; }
Adds a pattern with an optional label.
@param string $pattern      Perl style regex, but ( and )
lose the usual meaning.
@param string $label        Label of regex to be returned
on a match.
@access public
Adds a pattern with an optional label .