Web OS 10.0 Application Guide
412
n
Chapter 15: Content Intelligent Switching
212777-A, February 2002
Regular Expression Matching
Regular expressions are used to describe patterns for string matching. They enable you to
match the exact string, such as URLs, host names, or IP addresses. It is a powerful and effec-
tive way to express complex rules for Layer 7 string matching. Both Layer 7 HTTP SLB and
Web Cache Redirection can use regular expressions as a resource. Configuring for regular
expressions can enhance content-based switching in the following areas:
n
HTTP header matching
n
URL matching
Standard Regular Expression Characters
The following is a list of standard regular expression special characters that are supported in
Web OS:
Use the following rules to describe patterns for string matching:
n
Supports one layer of parenthesis.
n
Supports only single “$” (match at end of line) which must appear at the end of the string.
For example, “abc$*def” is not supported.
n
Size of the user input string must be 40 characters or less.
Table 15-1 Standard Regular Expression Special Characters
Construction
Description
*
Matches any string of zero or more characters
.
Matches any single character
+
Matches one or more occurrences of the pattern it follows
?
Matches zero or one occurrences of its followed pattern
$
Matches the end of a line
\
Escape the following special character
[abc]
Matches any of the single character inside the bracket
[^abc]
Matches any single character except those inside the bracket
Summary of Contents for Web OS 10.0
Page 26: ...Web OS 10 0 Application Guide 26 n Basic Switching Routing 212777 A February 2002...
Page 116: ...Web OS 10 0 Application Guide 116 n Web Switching Fundamentals 212777 A February 2002...
Page 168: ...Web OS 10 0 Application Guide 168 n Chapter 6 Server Load Balancing 212777 A February 2002...
Page 216: ...Web OS 10 0 Application Guide 216 n Chapter 8 Application Redirection 212777 A February 2002...
Page 288: ...Web OS 10 0 Application Guide 288 n Advanced Web Switching 212777 A February 2002...
Page 440: ...Web OS 10 0 Application Guide 440 n Chapter 16 Persistence 212777 A February 2002...
Page 470: ...Web OS 10 0 Application Guide 470 n Chapter 17 Bandwidth Management 212777 A February 2002...
Page 474: ...Web OS 10 0 Application Guide 474 n Glossary 212777 A February 2002...