run code in 200+ php & hhvm versions
Bugs & Features
<?php $myArray = array( "title" => "My Title", "description" => "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type Code: No Promo Code Required Begin: 2014-07-25 00:00:00 Expire: 0000-00-00 00:00:00", "link" => "http://www.gopjn.com/t/3-79115-101746-99698" ); $return = preg_match("/(Code.*Expire:\s\d{4}-\d{2}-\d{2}\s\d{2}:\d{2}:\d{2})/", $myArray["description"],$return); echo "<pre>"; print_r($return); echo "</pre>"; echo $return[1];
Output for 4.3.0 - 7.2.0