Learn F5 Technologies, Get Answers & Share Community Solutions Join DevCentral

Filter by:
  • Solution
  • Technology
Clear all filters
Answers

# and comments in iRules

i have an iRule that looks like this -

 if { ([string tolower [HTTP::host]] eq "www.disney.com") && ([string tolower [HTTP::uri]] starts_with "/#/characters/") } {
        ACCESS::disable
        virtual vs-toys
    }

I believe the "#" int he URI is making the editor think its the start of the comment.. how do i correct that so it doesnt think that..

0
Rate this Question

Answers to this Question

placeholder+image
USER ACCEPTED ANSWER & F5 ACCEPTED ANSWER

I believe escaping the character will work.

"/\#/characters/"
0
Comments on this Answer
Comment made 19-Dec-2013 by AngryCat 297
sweet.. i will give that a try.. thanks..
0
placeholder+image
USER ACCEPTED ANSWER & F5 ACCEPTED ANSWER

Or try curly braces:

% set var {test#123} test#123

Aaron

0
Comments on this Answer
Comment made 22-Jan-2018 by Dmitry A. Sysoev 186

Good afternoon!

Have you been able to make a working decision?

0