GNU Rush |
|
Restricted User Shell |
Sergey Poznyakoff |
regexp
statementThe regexp
statement configures the flavor of regular
expressions for use by subsequent match
,
set
, and insert
statements.
Configure the type of regular expressions.
Each flag is a word specifying some regular expression feature. It can be preceded by ‘+’ to enable this feature (this is the default), or by ‘-’ to disable it. Valid flags are:
Use POSIX Extended Regular Expression syntax when interpreting regex. This is the default.
Use basic regular expressions. Equivalent to ‘-extended’.
Do not differentiate case. Subsequent regex matches will be case insensitive.
For example, the following statement enables POSIX extended, case insensitive matching:
global regex +extended +icase
This document was generated on January 2, 2022 using makeinfo.
Verbatim copying and distribution of this entire article is permitted in any medium, provided this notice is preserved.