B.8 Other Constructs

The following table describes other regular expression constructs:

Table B.9

List of Other Constructs

Constructs

Description

" "

Encapsulates a fixed string of characters.

{ }

Provides a call to a lexical macro. The use of a WordMacro (which is similar to \w) would appear as {WordMacro}.

(?# )

Inline comment inserted within a regular expression. The comment terminates at the first closing parenthesis character.

|

Provides an alternation construct that matches any one of the terms separated by the | (vertical bar) character. For example, cat|dog|tiger. The left most successful match wins.