1 2 3 4 5 6 | <?php $text = 'abc "string \\\\ \\" literal" def'; preg_match_all('/"(\\\\[\\\\"]|[^\\\\"])*"/', $text, $matches); echo $text . "\n"; print_r($matches); ?> |
PD9waHAKJHRleHQgPSAnYWJjICJzdHJpbmcgXFxcXCBcXCIgbGl0ZXJhbCIgZGVmJzsKcHJlZ19tYXRjaF9hbGwoJy8iKFxcXFxbXFxcXCJdfFteXFxcXCJdKSoiLycsICR0ZXh0LCAkbWF0Y2hlcyk7CmVjaG8gJHRleHQgLiAiXG4iOwpwcmludF9yKCRtYXRjaGVzKTsKPz4=
-
upload with new input
-
result: Success time: 0s memory: 13112 kB returned value: 0
abc "string \\ \" literal" def Array ( [0] => Array ( [0] => "string \\ \" literal" ) [1] => Array ( [0] => l ) )


