<?php $str = '/2013/06/14/chocolate-peanut-butter-cups/'; $regex = '/[d{4}/\d{2}/\d{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.