private function MatchQuoted($quote_char, $i){

		$matched = '';
		while( $i < $this->input_len ){
			$c = $this->input[$i];

			//escaped character
			if( $c === '\\' ){
				$matched .= $c . $this->input[$i+1];
				$i += 2;
				continue;
			}

			if( $c === $quote_char ){
				$this->pos = $i+1;
				$this->skipWhitespace(0);
				return $matched;
			}

			if( $c === "\r" || $c === "\n" ){
				return false;
			}

			$i++;
			$matched .= $c;
		}

		return false;
	}
private function MatchQuoted($quote_char, $i){

		$matched = '';
		while( $i < $this->input_len ){
			$c = $this->input[$i];

			//escaped character
			if( $c === '\\' ){
				$matched .= $c . $this->input[$i+1];
				$i += 2;
				continue;
			}

			if( $c === $quote_char ){
				$this->pos = $i+1;
				$this->skipWhitespace(0);
				return $matched;
			}

			if( $c === "\r" || $c === "\n" ){
				return false;
			}

			$i++;
			$matched .= $c;
		}

		return false;
	}
private function MatchQuoted ( $ quote_char , $ i ) { $ matched = '' ; while ( $ i < $ this -> input_len ) { $ c = $ this -> input [ $ i ] ; //escaped character if ( $ c === '\\' ) { $ matched .= $ c . $ this -> input [ $ i + 1 ] ; $ i += 2 ; continue ; } if ( $ c === $ quote_char ) { $ this -> pos = $ i + 1 ; $ this -> skipWhitespace ( 0 ) ; return $ matched ; } if ( $ c === "\r" || $ c === "\n" ) { return false ; } $ i ++ ; $ matched .= $ c ; } return false ; }
When PCRE JIT is enabled in php, regular expressions don't work for matching quoted strings

$regex	= '/\\G\'((?:[^\'\\\\\r\n]|\\\\.|\\\\\r\n|\\\\[\n\r\f])*)\'/';
$regex	= '/\\G"((?:[^"\\\\\r\n]|\\\\.|\\\\\r\n|\\\\[\n\r\f])*)"/';
When PCRE JIT is enabled in php regular expressions don t work for matching quoted strings