// preg_match any character except quote? $pattern = "/[^\"]/iu"; preg_match($pattern, $text, $matches); // http://bytes.com/topic/php/answers/504682-how-preg_match-any-character-except-quote