Forum Discussion
fuhi_30959
Nimbostratus
Feb 03, 2014iRule - escape period in Double Quotes,Braces
I hope your help.
I want to know to escape period in Double Quotes.
I'm trying to write irule.
But I can't understand to escape period in Double Quotes.
If HTTP request is "http://test.co.jp/aah...
John_Alam_45640
Feb 03, 2014Historic F5 Account
Try this:
This evaluates to true
when RULE_INIT {
if { "aa.html" matches_regex "aa\\.html" } { log local0. "true" } else { log local0. "false" }
}
This evaluates to false:
when RULE_INIT {
if { "aahtml" matches_regex "aa\\.html" } { log local0. "true" } else { log local0. "false" }
}
This also evaluates to false:
when RULE_INIT {
if { "aa-html" matches_regex "aa\\.html" } { log local0. "true" } else { log local0. "false" }
}
- fuhi_30959Feb 03, 2014
Nimbostratus
John Thank you very much! I will try this. - fuhi_30959Feb 05, 2014
Nimbostratus
John It works! Thank you for your kindness.
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