fork(2) download
  1. <?php
  2.  
  3. $IfNoneMatchPattern = '#(?:W/)?("[\x00-\x7f]*?")(?=$|, (?:W/)?"[\x00-\x7f]*?")#';
  4.  
  5. $test = '"s"d, fsdf", W/"sdf, sd"f2", "dsf"sdf, sdf345"';
  6.  
  7. preg_match_all($IfNoneMatchPattern, $test, $matches);
  8.  
  9. print_r($matches);
Success #stdin #stdout 0.02s 52432KB
stdin
Standard input is empty
stdout
Array
(
    [0] => Array
        (
            [0] => "s"d, fsdf"
            [1] => W/"sdf, sd"f2"
            [2] => "dsf"sdf, sdf345"
        )

    [1] => Array
        (
            [0] => "s"d, fsdf"
            [1] => "sdf, sd"f2"
            [2] => "dsf"sdf, sdf345"
        )

)