3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $app_filename = "AntivirusSecurity_02_cb-508_bob_164-ce_ac8a0e5e-35f8-4c7b-b591-7e28cab94b4e.apk"; //$app_filename = "AntivirusSecurity_02_[508164]_ac8a0e5e-35f8-4c7b-b591-7e28cab94b4e.apk"; $click_id_fence_beginning = 'cb-'; $click_id_fence_end = '-ce'; preg_match_all("^{$click_id_fence_beginning}([0-9]*?){$click_id_fence_end}^",$app_filename,$fields); //echo (!empty($fields[1][0])) ? $fields[1][0] : 'no click id found'; print_r($fields);
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Array ( [0] => Array ( ) [1] => Array ( ) )