-
Notifications
You must be signed in to change notification settings - Fork 0
Character Classes
Derek Callaway edited this page Apr 19, 2018
·
11 revisions
The character classes feature of strglob implements an ordered set of bytes. Specifying a character class is done by surrounding string with colons and square brackets. Refer to the sample below for a demonstration of the
[:digit:]
character class which encapsulates the characters0
through9
. A list of all available character classes follows:
[:alnum:]
1
2
3
4
5
6
7
8
9
0
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
[:alpha:]
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
[:ascii:]
[:blank:]
[:cntrl:]
[:digit:]
[:graph:]
[:punct:]
[:lower:]
[:upper:]
[:print:]
[:space:]
[:symbol:]
[:xdigit:]
[:word:]
[:digit:]
0
1
2
3
4
5
6
7
8
9