• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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