<?php $str = '/2013/06/14/chocolate-peanut-butter-cups/'; $regex = '/\/[0-9]{4}\/[0-9]{2}\/[0-9]{2}\/[a-z0-9-]/'; preg_match($regex, $str, $matches); print_r($matches);
You have javascript disabled. You will not be able to edit any code.