3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = "[u'N', u'NE', u'MAS4OMC']"; echo $a; preg_match_all("/u'(.+)'/U", $a, $matches); var_dump($matches); echo implode(';', $matches[0]);
Output for 4.3.0 - 7.2.0
[u'N', u'NE', u'MAS4OMC']array(2) { [0]=> array(3) { [0]=> string(4) "u'N'" [1]=> string(5) "u'NE'" [2]=> string(10) "u'MAS4OMC'" } [1]=> array(3) { [0]=> string(1) "N" [1]=> string(2) "NE" [2]=> string(7) "MAS4OMC" } } u'N';u'NE';u'MAS4OMC'