3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $data = "D 92.42A-B+43G-H/45A";$matches=array(); preg_match_all("/([A-Z]{0,1}) ([0-9]{1,}).([0-9A-Z\-\+\/]{1,})/",$data,$matches); print_r($matches);
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Array ( [0] => Array ( [0] => D 92.42A-B+43G-H/45A ) [1] => Array ( [0] => D ) [2] => Array ( [0] => 92 ) [3] => Array ( [0] => 42A-B+43G-H/45A ) )