fork download
  1. <?php
  2.  
  3. $str = 'VN7-572G-75AJ(NX.G6GSA.001)';
  4. preg_match_all('#[^()]+#', $str, $matches);
  5. echo $matches[0][0] . "\n" . $matches[0][1];
Success #stdin #stdout 0s 52488KB
stdin
Standard input is empty
stdout
VN7-572G-75AJ
NX.G6GSA.001