language: PHP (php 5.4.4)
date: 794 days 6 hours ago
link:
visibility: private
1
2
3
4
5
6
<?php
$text = 'abc "string \\\\ \\" literal" def';
preg_match_all('/"(\\\\[\\\\"]|[^\\\\"])*"/', $text, $matches);
echo $text . "\n";
print_r($matches);
?>