protected function match(array &$str, $pattern, $keep)
    {
        $tokens = array();
        foreach ($str as $s) {
            preg_match_all($pattern, $s, $m);
            $tokens = array_merge(
                $tokens,
                $m[$keep]
            );
        }

        $str = $tokens;
    }
protected function match(array &$str, $pattern, $keep)
    {
        $tokens = array();
        foreach ($str as $s) {
            preg_match_all($pattern, $s, $m);
            $tokens = array_merge(
                $tokens,
                $m[$keep]
            );
        }

        $str = $tokens;
    }
protected function match ( array & $ str , $ pattern , $ keep ) { $ tokens = array ( ) ; foreach ( $ str as $ s ) { preg_match_all ( $ pattern , $ s , $ m ) ; $ tokens = array_merge ( $ tokens , $ m [ $ keep ] ) ; } $ str = $ tokens ; }
Execute the KEEP_MATCHES mode

@param array &$str The tokens to be further tokenized
Execute the KEEP_MATCHES mode