Forum Discussion
R_Marc
Nimbostratus
Apr 28, 2014Odd behavior on regsub in iRule
I have a switch in an irule to clean up some bad decisions made by developers.
Here is the trimmed down version where the problem occurs, with some debug logging.
ltm rule rmarc-test-rule {
...
R_Marc
Nimbostratus
Apr 29, 2014The Location might be very specific (this is for WebSEAL).
A rather simple example:
Location: https://test.somedomain.com/jct_test/client-admin/login;jsessionid=260A8C73CC86423F53B625A0976FA6D6
I have to chage that to:
Location: https://dtl.somedomain.com/jct_test/client-admin/login;jsessionid=260A8C73CC86423F53B625A0976FA6D6
That would be wicked simple in perl :).
regsub does it except for the odd behavior I noted. If there is a better way to do that, I'm all ears.
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