3v4l.org

run code in 500+ PHP versions simultaneously
<?php $re = '/([^_\s]+)(?:_[^\n_-]+)?_\d+\.zip$/m'; $str = 'xxxx_get-thisValue_more details_20200728173715594600.zip get-thisValue_more details_20200728173715594600.zip getThisValue_20200728173715594600.zip xxxx_get-thisValue_more details_20200728173715594600.zip xxxx_getthisValue_more details_20200728173715594600.zip 1111_get-thisValue_more details_20200728173715594600.zip 1111_getthisValue_more details_20200728173715594600.zip get-thisValue_more details_20200728173715594600.zip getthisValue_more details_20200728173715594600.zip get-thisValue_20200728173715594600.zip getthisValue_20200728173715594600.zip'; preg_match_all($re, $str, $matches); print_r($matches[1]);
Output for 7.4.0 - 7.4.33, 8.0.1 - 8.0.30, 8.1.0 - 8.1.34, 8.2.0 - 8.2.30, 8.3.0 - 8.3.30, 8.4.1 - 8.4.21, 8.5.0 - 8.5.7
Array ( [0] => get-thisValue [1] => get-thisValue [2] => getThisValue [3] => get-thisValue [4] => getthisValue [5] => get-thisValue [6] => getthisValue [7] => get-thisValue [8] => getthisValue [9] => get-thisValue [10] => getthisValue )

preferences:
88.46 ms | 1302 KiB | 4 Q