<?php $regex = '/^(\/(\d+))+$/'; $str = '/1/20/3'; preg_match_all( $regex, $str, $result ); var_dump( $result );
You have javascript disabled. You will not be able to edit any code.