Jump to content
Welcome to our new Citrix community!

help adding apm code - escaping a string for a rewrite expression


Recommended Posts

trying to test using the netscaler to add apm tool into websites that i can't modify the code for. 


can anyone help convert that script block to a compatible netscaler rewrite expression block? is there a tool that can do it? 

what characters need to be escaped? 





Link to comment
Share on other sites

Two possible ways:

Most special characters like ? and ! will need to be escaped as \? or \!.  Basic example:  https://support.citrix.com/article/CTX234965

Double quotes will need to be literalized as \" or if entering in command line, you can us single quotes to surround the expression while keeping internal double quotes intact.


There's some variance depending on if you are writing this in gui or in cli.  Something's do not need to be escaped in GUI; but will be escaped in CLI. If you then try to run the cli commands again thoug as new cli commands, you have to first re-literalize the ? as \? to paste back in.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...