User`s guide
72 ■ Barracuda Spam Firewall User’s Guide
Using Special Characters in Expressions
The following characters have a special meaning in regular expressions and should be preprended by a
backward slash ( \ ) when you want them interpreted literally:
Examples
The following table provides some examples to help you understand how regular expressions can be
used.
. $
[(
] )
\|
*^
?@
Example Matches...
viagra viagra, VIAGRA or vIaGRa
d+ One or more digits: 0, 42, 007
(bad|good) letters 'bad' or matches the letters 'good'
^free letters 'free' at the beginning of a line
v[i1]agra viagra or v1agra
v(ia|1a)gra viagra or v1agra
v\|agra v|agra
v(i|1|\|)?agra vagra, viagra, v1agra or v|agra
\*FREE\* *FREE*
\*FREE\* V.*GRA *FREE* VIAGRA, *FREE* VEHICLEGRA, etc