root (/ or /default.aspx) won't match data group (i.e. it does not start with /uri1/), will it? so, why do you have to differentiate?
That's true, but I need the subfolders that are not defined in the data group to be routed to a different pool.
The other way to look at what I need would be:
if {$root || [class match -- $uri starts_with uri_class] } {
pool foo
} else {
pool qux
}
So if its root or a defined subfolder it would go to the default pool. And if is a subfolder but not defined in the data group it would go to a different pool.