Forum Discussion
Hamish
May 21, 2010Cirrocumulus
Note sure you require the complexity of a regex... You could try a glob... e.g.
if { [HTTP::uri] matches_glob "webmail.*.server.com"} ...
You could also get fancy with DG's and specific pools for specific domains if you really wanted.
Depending on performance, you may also want to investigate whether a pre filter on starts_with "webmail" might help as well (To avoid using the glob match if the URL is something other than webmail.*.server.com. This however depends on whether starts_with is a lot quicker than the glob is tries to avoid for every hit...
H