Forum Discussion
Can you wildcard cookie name with HTTP::cookie?
Hi Eric,
Matching a regexp on HTTP::cookie should be a trivial exercise. There's a nice example here where a Class of regex strings was created and the iRule runs a foreach loop to parse each entry:
https://devcentral.f5.com/codeshare?sid=479
There's nothing intrinsically special about HTTP::cookie. You can match and manipulate the content of this field in much the same way you can match any TCL var. If you want to just match anything with 'test' don't forget the "contains" criterion.
Check out this page https://devcentral.f5.com/articles/irules-101-10-regular-expressions and heed the examples and warnings.
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