3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $str = 'WINNER_NIGHT_BLOCKS_COMBINATION : {2014-09-06,2014-09-13,2014-09-15,2014-09-17,2014-09-19,2014-09-21,2014-09-23,2014-09-25,2014-09-27}'; $matches = array(); if (preg_match('/^WINNER_NIGHT_BLOCKS_COMBINATION : \{(.*)\}$/i', $str, $matches)) { print_r($matches); } else { echo "don't match!"; }
Output for 4.3.0 - 7.1.0
Array ( [0] => WINNER_NIGHT_BLOCKS_COMBINATION : {2014-09-06,2014-09-13,2014-09-15,2014-09-17,2014-09-19,2014-09-21,2014-09-23,2014-09-25,2014-09-27} [1] => 2014-09-06,2014-09-13,2014-09-15,2014-09-17,2014-09-19,2014-09-21,2014-09-23,2014-09-25,2014-09-27 )