CodeIgniter Forums

Full Version: RegEx and URI Routing
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

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.

El Forum

[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.