[eluser]drfloob[/eluser]
hey, great work, ptrippett. I especially like your SEO link example, I think it should be included.
I suggest changing the URI Routing page to move the Examples section below the Regex section, so the concepts are explained before they're demonstrated. It would also be helpful to have a "related topics" or "further information" section at the bottom of the page with off-site links to things like PHP.net's definitions of back-references and regular expressions.
Code:
<h2>Related Topics</h2>
<p>
<a href="http://us2.php.net/manual/en/regexp.reference.php">PHP Regular Expressions</a><br />
<a href="http://us2.php.net/manual/en/regexp.reference.php#regexp.reference.back-references">Back References</a><br />
[...]
</p>
Regarding ptrippett's SEO example: if you are just throwing away that second parameter, the route could be simplified to:
Code:
$route['city/(:num)/:any'] = "events/by_city_id/$1";
And finally, to play editor a bit: in the final example ptrippett provided, 'product/(:num)', the words "and
anything in the second" should be changed to "and
any number in the second"