Coyote Point Systems Equalizer Especificaciones Pagina 550

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 594
  • Tabla de contenidos
  • SOLUCIÓN DE PROBLEMAS
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 549
How to Use Regular Expressions
\\
matches a single backslash (\)
\b
matches the beginning of a word (e.g.: \bex matches "example" but not "text")
\n, \r, \t, \v
match whitespace characters
\', \"
match single and double quotes
Matching in Regular Expressions
If a real expression could match more than one substring of a given string, the real expression matches the one
starting earliest in the string. If the real expression could match more than one substring starting at that point, it
matches the longest. Subexpressions also match the longest possible substrings, subject to the constraint that
the whole match be as long as possible, with subexpressions starting earlier in the real expression taking priority
over ones starting later. Note that higher-level subexpressions thus take priority over their lower-level component
subexpressions.
Match lengths are measured in characters, not collating elements. A null string is considered longer than no match
at all. For example, 'bb*' matches the three middle characters of 'abbbc', '(wee|week)(knights|nights)' matches all
ten characters of 'weeknights', when '(.*).*' is matched against 'abc' the parenthesized subexpression matches all
three characters, and when '(a*)*' is matched against 'bc' both the whole real expression and the parenthesized
subexpression match the null string.
Using Regular Expressions in Match Rules
TBD
Using Regular Expressions in Responders
In some cases, it may be desirable to examine the URL of an incoming request and re-use parts of it in the URL
returned to the client by a Redirect Responder. This is the purpose of the regex parameter: specify a custom
regular expression that is used to:
l Parse the URL of an incoming request
l Break it down into separate strings (based on the positions of literal characters in the expression)
l Assign each string to a named variable
These named variables can then be used in the URL field of the Redirect Responder. When the Responder replies
to a client, it performs string substitution on the URL. Because the purpose of using regular expressions to perform
string substitution in Redirect URLs is to parse request URLs into strings, constructing an appropriate regular
expression requires an exact knowledge of the format of the request URLs that will typically be coming in to the
cluster IP.
550
Copyright © 2013 Coyote Point Systems. A subsidiary of Fortinet, Inc.
Vista de pagina 549
1 2 ... 545 546 547 548 549 550 551 552 553 554 555 ... 593 594

Comentarios a estos manuales

Sin comentarios