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