<?php $mystring = "something/2018/02/something_else"; if(preg_match("~/\d{4}/\d{2}/~",$mystring,$out)){ echo "Found: {$out[0]}"; }else{ echo "Date components not found"; }
You have javascript disabled. You will not be able to edit any code.