<?php $str = '/1/2/3'; preg_match( '/^(\/\d+)+\/$/', $str, $matches ); if( empty( $matches ) ) echo "fail";
You have javascript disabled. You will not be able to edit any code.