RegEx and URI Routing

Ok, so I'm trying to use regular expressions with the URI routing. My url's containing strings that were generated by the url title function of the url helper. So in other words if the word Xbox 360 is entered it's converted to Xbox-360. What I need is a regex pattern that will match all upper and lowercase letters as well as hyphens.

[eluser]Sean Gates[/eluser]


Let me know if that works.

Also, if you're using a Mac go grab RegExhibit. A great little app for developing regular expressions.

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.