Hi,
First of all congratulations to all the contributors for releasing 1.2.0.
I was just wondering if regular expressions can be used inside case " ----" syntax.
Example:
switch($ruri.user) { case "1[0-9]" : route(10); }
Any help would be appreciated.
w/regards, Jayesh
__________________________________________________________ Yahoo! India Answers: Share what you know. Learn something new http://in.answers.yahoo.com/
Hi Jayesh,
regexp are not suitable foe the switch....case command = afaik, there is no language implementing this.
For this purpose just use cascaded if statements.
if ($ruri.user~="1[0-9]") then else if....
regards, bogdan
Jayesh Nambiar wrote:
Hi,
First of all congratulations to all the contributors for releasing 1.2.0.
I was just wondering if regular expressions can be used inside case " ----" syntax.
Example:
switch($ruri.user) { case "1[0-9]" : route(10); }
Any help would be appreciated.
w/regards, Jayesh
Here’s a new way to find what you're looking for - Yahoo! Answers
http://us.rd.yahoo.com/mail/in/yanswers/*http://in.answers.yahoo.com/
Users mailing list Users@openser.org http://openser.org/cgi-bin/mailman/listinfo/users