Welcome Guest, Not a member yet? Register   Sign In
Need routing help, specifically with regex
#4

[eluser]Leggy[/eluser]
Well if you really want any character except /n (newline) you could use (.+)

Code:
$route['insurance/([A-Z]{2})/(.+)'] = 'insurance/county/$1_$2';
$route['insurance/([A-Z]{2})/(.+)/(.+)'] = 'insurance/city/$1_$2_$3';


Messages In This Thread
Need routing help, specifically with regex - by El Forum - 04-15-2008, 08:21 AM
Need routing help, specifically with regex - by El Forum - 04-15-2008, 08:36 AM
Need routing help, specifically with regex - by El Forum - 04-15-2008, 08:49 AM
Need routing help, specifically with regex - by El Forum - 04-15-2008, 12:16 PM



Theme © iAndrew 2016 - Forum software by © MyBB