Forum Discussion
DaveC_21078
Altostratus
Sep 01, 2009string map is replacing ? with a space
Hi,
I'm doing a string map and the first ? after ad.imp in the replacement string is being replaced with a space. Strings below. How do I stop that?
string map "adserver/impression/pid=$pid/oid=$oid/rand=$rand/?click ad.imp?pid=$pid&oid=$oid&rand=$rand/?pclk"
Thanks
- David_Remington
Employee
string map uses glob-style pattern matching which means that ? is a special character meaning "any one character". If you need to match a literal ? you need to escape it: - hoolio
Cirrostratus
Hi David, - DaveC_21078
Altostratus
The /worked. Thanks.
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