<?php preg_match('/(?P<QUOTE>"|\')(?:[^(?P=QUOTE)]|\\\\(?P=QUOTE))*?(?P=QUOTE)/', 'foo "str\"ing" bar', $matches); var_dump($matches);
You have javascript disabled. You will not be able to edit any code.