Welcome Guest, Not a member yet? Register   Sign In
Quick regex routing question
#4

[eluser]narkaT[/eluser]
[quote author="darrenm" date="1228163572"]Ok, I was being lazy. Seems to be as simple as:

Code:
$route['productsearch/(.)+'] = "productsearch/listing/$1";
[/quote]

nearly Wink

Code:
$route['productsearch/(.+)'] = "productsearch/listing/$1";

your regex would only "remember" the last char in the URI Smile


Messages In This Thread
Quick regex routing question - by El Forum - 12-01-2008, 08:18 AM
Quick regex routing question - by El Forum - 12-01-2008, 08:32 AM
Quick regex routing question - by El Forum - 12-01-2008, 08:34 AM
Quick regex routing question - by El Forum - 12-01-2008, 09:22 AM



Theme © iAndrew 2016 - Forum software by © MyBB