Mike_Perez_6161
Feb 18, 2010Nimbostratus
Parse the first and second character in the path?
I know what I have got below is not parsing the second character but is sort of displaying the concept.
Can some please give me a hand in the simplest form?
when HTTP_REQUEST {
Parse the first character in the path
switch -glob [HTTP::path] {
"/[a-alA-AL]*" {
pool reward-uat5.123.com_AA2AL
}
"/[am-blAM-BL]*" {
pool reward-uat5.123.com_AM2BL
}
"/[bm-cdBM-CD]*" {
pool reward-uat5.123.com_BM2CD
}
default {
Requested URI was a leading forward slash only
pool reward-uat5.123.com_AA2AL
}
}
}