3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $str = 'Cloud print - 24" x 18"'; $pattern = "/^(2)(.*)[\"]]$/i"; preg_match_all("/2.*\"/", $str, $match); var_dump($match);
based on BvKkb
Output for 5.3.21 - 7.3.0beta1
array(1) { [0]=> array(1) { [0]=> string(9) "24" x 18"" } }