Welcome Guest, Not a member yet? Register   Sign In
why doesn't this regular expression get recognized by codeigniter's router
#1

[eluser]codeigniterzzz[/eluser]
I have this route:

Code:
$route["((parameter|type|something)-([0-9]+)\/)+"] = 'somecontroller';
so when i test the url with this:

www.somewebsite.com/parameter-1/

codeigniter returns with a page not found error. But I tested the regular expression here:

http://rubular.com/

and it seems to work perfectly fine.

I have also tried putting the leading/trailing /'s:

Code:
$route["/((parameter|type|something)-([0-9]+)\/)+/"] = 'somecontroller';


Messages In This Thread
why doesn't this regular expression get recognized by codeigniter's router - by El Forum - 09-24-2012, 05:49 PM



Theme © iAndrew 2016 - Forum software by © MyBB