I'm looking for a regular expression to split and capture a url path eg with example.com/param1/param2/param3 I would like param1, param2 and param3 to be captured. There could be an unknown number of parameters. This will be used with PHP's preg_match. Can this be done?
EDIT: This will be used with PHP's preg_match, because I am using it as a Zend Router Rule. Can this be done?