next up previous contents
Next: Tagging of Regular Expressions Up: Regular Expressions Previous: Constructing Regular Expressions   Contents

Options to the Regular Expression Operators

There are a number of options, represented by letters placed after the closing character of the regular expression operators, that modify the behavior of the operator in a number of useful ways. These options are summarized in Table [*].


Table: Options for regular expression operators
Option Meaning
i Make search case insensitive.
g Operate on all occurences of matches, not just the first.
s Allow . to match newline.
e (with s operator)Treat substituted text as a perl expression.
x Ignore whitespace and comments inside the regular expression.




Phil Spector 2002-10-18