<?php $str = "blur/blur/myPhotoName_20170818_111453.jpg"; Preg_match("/.*\/(.*?)_.*(\..*)/", $str, $match); Echo $match[1] . $match[2];
You have javascript disabled. You will not be able to edit any code.