Michael,
I want to take the lbforlder variable and determine if it contains any of the characters that would be found in any of the existing pools. In a perfect world, my current iRule would work but our naming structure is pool_appname_port. Since I can't determine what port the pool is on, I would hope to scan the list of current pools and select from there.
Bhattman,
I've seen that article and tested it. That works but I want to see if I can do it in an iRule.
Hoolio,
That logic makes the iRule more robust but still doesn't fix my problem of constructing my pool name.
All,
Currently I build the pool name and it looks like this pool_login. But in reality it should look like pool_login_8080. But keep in mind, the ports are random so adding
set lbfolder pool_[string trim $lbfolder "/"]_8080
wouldn't work because the port could different, e.g., 7777, 80, and so on.