Forum Discussion
Christian_Meiss
Nimbostratus
Jul 18, 2016string varialbe within STREAM::expression leads "illigal argument" error
Hi Folk,
i actually write an iRule to rewrite stream. The irule uses the advantages datagroup lists to dynamically build the regex replace pairs.
I now build a string var "$regexreplace" which i want to use within STREAM::expression
STREAM::expression {[string trim $regexreplace " "]}
But these line produces an error like this:
Jul 18 14:52:03 bigip-1-prod-01 info tmm1[16928]: Rule /Common/Substitute : VS=/Common/rva-ocsp-test-02_730_EP_vs, Host=certtest.bnotk.de, URI=/crls/: try STREAM::expression {@foo@bar@ @bla@fasel@ }
Jul 18 14:52:03 bigip-1-prod-01 err tmm1[16928]: 01220001:3: TCL error: /Common/Substitute - Illegal argument (line 1) invoked from within "STREAM::expression {[string trim $regexreplace " "]}"
The first line show a log output where variable $regexreplace is interpreted right. In second line you see the error.
What is going wrong?
Cheers
Christian
1 Reply
- cjunior
Nacreous
Hi, just remove curly braces and I think it works.
STREAM::expression [string trim $regexreplace " "]Regards.
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