Forum Discussion
Andrea_Arquint
Nimbostratus
Aug 14, 2013match strings between delimiters
Hi
I do have an irule that contains:
if {$al_ctrl_parameter contains $switch_app_pool }
switch_aap_pool could contain myURI_A1 or myURI
al_ctrl_parameter could contain TEST=myURI_A1,myURI,...
Andrea_Arquint
Nimbostratus
Sep 04, 2013Hi Dan
Thank you first for answering but there is one more challange. As you can see:
al_ctrl_parameter looks like TEST=myURI_A1,myURI,myURI_A2,myURI_A3&
So, with split
set testSPLIT [split $al_ctrl_parameter ,]
log local0. "testSPLIT: $testSPLIT"
araSPLIT: TEST=myURI_A1 myURI myURI_A2 myURI_A3&
I should only build a list between the = and & without them like:
myURI_A1 myURI myURI_A2 myURI_A3
and the $switch_app_pool variable could contain one of these but should exact match against just one.
I don't know how to achieve this... Would be great if you could help!
Thank you bb
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects