UNIX Regular Expression
X{n1,}?
X{,n2}?
X{n1,n2}?
(?!X)
(X)
(?dX)
(?:X)
X|Y
[char-set]
UNIX Regular Expressions
Definition
Minimal match of at least n1 occurrences of X.
Minimal match of at least zero occurrences but not
more than n2 occurrences of X.
Minimal match of at least n1 occurrences but not
more than n2 occurrences of X.
Search fails if expression X is matched. The ex-
pression ^(?!if) matches the beginning of all lines
that do not start with if.
Matches sub-expression X and specifies a new
tagged expression (see
pressions). No more tagged expressions are
defined once an explicit tagged expression number
is specified as shown below.
Matches sub-expression X and specifies to use
tagged expression number d where 0<=d<=9. No
more tagged expressions are defined by the sub-
expression syntax (X) once this sub-expression
syntax is used. This is the best way to make sure
you have enough tagged expressions.
Matches sub-expression X but does not define a
tagged expression.
Matches X or Y.
Matches any one of the characters specified by
char-set. A dash (-) character may be used to
specify ranges. The expression [A-Z] matches any
uppercase letter. A backslash (\) may be used in-
side the square brackets to define literal characters
or define ASCII characters. For example, \- spe-
cifies a literal dash character. The expression
[\d0-\d27] matches ASCII character codes 0..27.
The expression []] matches a right bracket. In
SlickEdit
acters. In both syntaxes, the expression [\]]
matches a right bracket. The expression [^]
matches a caret (^) character but this does not work
for SlickEdit regular expressions. In both syntaxes,
[\^] matches a caret (^) character.
Using Tagged Search Ex-
regular expressions, [] matches no char-
®
521
Need help?
Do you have a question about the SLICKEDIT V3.3 and is the answer not in the manual?