Fortinet 5.0 Patch 6 Microscope & Magnifier User Manual


 
Fortinet 675 FortiWeb 5.0 Patch 6 Administration Guide
\s Matches a space, non-breaking space, tab, line
ending, or other white space character.
Tip: Many languages do not se
parate words
with white space. Even in languages that
usually use a white space separator, words can
be separated with many other characters such
as:
\/-”’"“‘.,><—:;
and new lines.
In these cases, you should usually include
th
ose in addit
ion to \s in a match set ( [] ) or
may need to use \b (word bo
undary) instead.
Text: <a
href=‘ht
tp://www.example.com’
>
Regular expression:
www\.ex
ample\.com\s
Matches: Nothing.
Du
e to the final ’ which is a word
bounda
ry but not a white space,
this does not match. The regular
expression should be:
www.example.com\b
\S Matches a character that is not wh
ite space,
such as A or 9.
Text: My cat catches things.
Regular expression: \S
Matches: Mycatca
tchesthings.
\d Matches a decimal digit such as 9. Text: /url?parameterA=value1
Regu
lar expression: \d
Matches: 1
\D Matches a character that is not a digit
, such as
A or b or É.
\w Matches a whole word.
Words are substrings of any uninterrupted
combin
ation of one or more characters from
this set:
[a-zA-Z0-9_]
between two word boundaries (space, new line,
:, etc.
).
It does not matc
h Unicode characters that are
equivalent, such as , ?? or .
Text: Ya
hoo!
Regu
lar expression: \w
Matches: Yaho
o
Does not match the terminal
exclamat
ion point, which is a
word boundary.
\W Matches anything that is not a wor
d. Text: Sell?!?~
Regular expression: \W
Matches: ?!?~
. Matches any single character except
\r or \n.
Note: If the character is written by combining
tw
o Unicode code points, such as à where the
core letter is encoded separately from the
accent mark, this will not match the entire
character: it will only match one of the code
points.
Text: My
cat catches things.
Regu
lar expression: c.t
Matche
s: cat ca
t
Table 61:Popular FortiWeb regular expression syntax
Notation Function Sample Matches