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]);

preferences:
91.58 ms | 1303 KiB | 5 Q