Codeigniter Routes regex

Posted by esryl on Stack Overflow See other posts from Stack Overflow or by esryl
Published on 2010-03-11T19:46:53Z Indexed on 2010/03/11 19:49 UTC
Read the original article Hit count: 552

Filed under:
|
|
|

want to route all underscored urls to the dashed equivalent.

what would be the codeigniter route regex.

url

/controller-name/method-name-which-is-long/

would speak to

/controller_name/method_name_which_is_long/

see: http://codeigniter.com/forums/viewreply/696690/ which gave me the idea to ask :)

© Stack Overflow or respective owner

Related posts about codeigniter

Related posts about regex