Search:     Advanced search
Browse by category:
Glossary | Ask question

Regular Expresssion (regex) SLB Definition
Add comment
Views: 455
Votes: 0
Comments: 0
This SLB method creates a policy that match the url with the simplified regular expression <regex> defined.

<regex> is a string of the form:


The so-called "meta" characters in the regular expression have the
following meanings:

^ - Match at the beginning of the URL
* - Wildcard - any sequence of 0 or more characters will match
$ - Match at the end of the URL

Example regular expressions would be:

^I=*you=*me=*.html$ (matches I=Jamie/you=Arhtur/index.html, but not
youandI=me/you=vinny/index.html or

^I=*you=*me=*.html (matches I=Jamie/you=Arthur/index.htmlamentation)

I=*you=*me=*.html (matches youandI=me/you=vinny/index.html)

*.html$ (matches any URL ending in .html)

Invalid regular expressions include:

^^hi $ (more than one caret (^) is not allowed)
^hi$$ (more than one dollar ($) is not allowed)
h^i (caret must be at the start)
$hi (dollar must be at the end)
^*hi (consecutive meta characters are not allowed)
h**i (consecutive meta characters are not allowed)
* (must contain at least one non-meta character)
^ (Ibid)
$ (Ibid)

If the regular expression matches the URL, then the policy matches.

<group_name > should correspond to a group with an method other than
"pc " or "pu ". <precedence> can be any value between 0 and 65535 inclusive.
Up to 50 regex policies can be configured per virtual.

Other questions in this category
How do I configure slb (server load balancing)?
What are the types of real service?
How do I configure health check type?
How do I check for the status of server(s)?
What are slb group method algorithms?
What are slb policies and what are their types?
How do I configure static policy type?
How do I configure default policy type?
How do I configure backup policy type?
SLB Methods in Term OSI Concept
Round Robin (rr) SLB Definition
Shortest Response (sr) SLB Definition
Least Connection (lc) SLB Definition
Persistent IP (pi) SLB Definition
Hash IP (hi) SLB Definition
Consistent Hash IP (chi) SLB Definition
Port Range (port) SLB Definition
L2 MAC-Based SLB Definition
L3 IP-Based SLB Definition
SIP SLB Definition
RTSP SLB Definition
SNMP (snmp) SLB Definition
Persistent Cookie (pc) SLB Definition
Persistent Hostname (ph) SLB Definition
Persistent URL (pu) SLB Definition
Insert Cookie (ic) SLB Definition
Rewrite Cookie (rc) SLB Definition
Embed Cookie (ec) SLB Definition
Hash Cookie (hc) SLB Definition
Hash Header (hh) SLB Definition
Consistent Hash Header (chh) SLB Definition
Hash URL (hashurl) SLB Defnitions
File Type (filetype) SLB Definition
QoS Cookie (cookie) SLB Definition
QoS Hostname (hostname) SLB Definition
Qos URL (url) SLB Definition
What is the range of ports to be used when connecting to backend servers?
How do I calculate least connection (lc) method threshold granularity and real server weight?
How do I configure Firewall Load Balancing (FWLB)?
How is the "Average Response time" calculated?
APV Deployment guide for SharePoint 2010
How to Decrypt Packet capture with Session keys?
Changes required while using Exchange 2019 as HTTPS Real Server
Windows Authentication Issue