Forum Discussion
Kevin_Stewart
Oct 23, 2013Employee
I don't think a lookahead/back reference will work with matches_regex, but this will:
if { [regexp {^/A(B|C)DEF/test-(10|20|30|40|50|60)/(one|two|three|four|five|six|seven|eight)/(2013|2014)/(.)} $uri all a b c d e] == 1 } {
log local0. "http://webserver_name-${b}-A${a}DEF/${d}/${e}"
}