• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Quick regex routing question

#1
[eluser]darrenm[/eluser]
Hi there

I have controller that needs to take loads of arguments from a URL. The amount of arguments will vary.

As the URI is going to get pretty long I'm keen to lose the 'function' part of it and re-route along the lines of:

Code:
/productsearch/(varying*number*of*segments) = /productsearch/listingfunction/(*everything*)

Can anyone help me out with the regex specifics?

many thanks.


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.