Forum Discussion
match strings between delimiters
@bigbrother - if your $al_ctrl_parameter is the query string from a URL request (ie, it begins with a "?" and is in the format of "?param1=value1¶m2=value2&...." then you can use the URI::query command to pull the value for "param1", "param2", etc. You can then split the string into tokens with your delimiter (in your case it looks like commas). So, something like this should help
set query "?P1=V1&TEST=myURI_A1,myURI,myURI_A2,myURI_A3&P2=V2";
set test_value [URI::query $query "TEST"]
set value_list [split $test_value ","]
The contents of "value_list" should be {myURI_A1 myURI myURI_A2 myURI_A3}.
Keep in mind that if the value of $query doesn't start with a "?" then the URI::query command won't return anything.
Hope this helps...
-Joe
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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