Unix Regular Expression; Unix Regular Expression Examples - SlickEdit V3.3 User Manual

Slick computer accessories user manual
Table of Contents

Advertisement

• +, *, ?, {}, +?, *?, ??, {}? (These operators have the same precedence.)
• concatenation
• |

UNIX Regular Expression Examples

The table below shows examples of UNIX regular expressions.
Table 11.13. UNIX Regular Expression Examples
Sample UNIX Expression
^defproc
^definit$
^\*name
[\t ]
[\d9\d32]
[\x9\x20]
p.t
s.*?t
for|while
^\:p
xy+z
[a-z-[qw]]
[\p{isGreek}&[\p{L}]]
UNIX Regular Expressions
Description
Matches lines that begin with the word defproc.
Matches lines that only contain the word definit.
Matches lines that begin with the string *name. No-
tice that the backslash must prefix the special char-
acter *.
Matches tab and space characters.
Matches tab and space characters.
Matches tab and space characters.
Matches any three letter string starting with the let-
ter p and ending with the letter t. Two possible
matches are pot and pat.
Matches the letter s followed by any number of
characters followed by the nearest letter t. Two pos-
sible matches are seat and st.
Matches the strings for or while.
Matches lines beginning with a file name.
Matches x followed by one or more occurrences of
y followed by z.
Character set subtraction. Matches all English
lowercase letters except q and w.
Character set intersection. Matches all Unicode let-
525

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the SLICKEDIT V3.3 and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Corev3.3 for eclipse

Table of Contents