Forum Discussion
Squeak
Cirrus
Jan 31, 2020Modify APM variable value
Hello, I have a variable that contains a 12 digit numeric value and I want to add a hyphen between the 8th and 9th digits. The variable looks like this at the moment, E.g 109511158543
I ...
- Feb 06, 2020
I guess ;)
here are my tests:
variable assign:
1 - session.custom.source = Text 109511158543
2 - session.custom.target = join [scan [mcget {session.custom.source}] "%8s%4s"] "-"
After authenticationI have following variables:
session.custom.source 109511158543
session.custom.target 10951115-8543
NUT2889
Cirrostratus
Feb 03, 2020Hi,
I'm not sure the expression under APM visual policy is support or not.
But i have one idea for you.
- Use the APM to call iRule : https://support.f5.com/csp/article/K13296
- Use iRule to replace the value : https://devcentral.f5.com/s/articles/intermediate-irules-handling-strings-20429
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