POSIX Regular Expression Syntax and Examples

Regular expressions (often referred to simply as "regex") can be much more complex than expressions that use the wildcard characters which were discussed in the previous section. Unlike wildcards, regular expressions will match character sequences containing the patterns that they specify regardless of where that pattern appears in a word. As explained later in this section, you can use the anchor symbols '^' (beginning of word) and '$' (end of word) to restrict where in a word a regular expression will be matched, or to restrict that match to entire words by specifying both anchor symbols.

Regular expressions assign special meaning to various characters, which are often referred to as metacharacters:

Note that when configuring an HTTP Referrer Whitelist,use only the regular expression syntax discussed in the preceding list. However, regular expression syntax also supports a number of special character sequences to match non-printable characters, special character classes such as digits and alphabetic characters, and so on. Discussing complete regular expression syntax is outside the scope of the Watson Explorer Engine documentation. For a complete discussion of regular expressions, see the Regular Expressions Information site.