Greedy quantifiers 8, Reluctant quantifiers 8, Possessive quantifiers 8 – Brocade Network Advisor SAN User Manual v12.3.0 User Manual

Page 1550: Logical operators 8

Advertising
background image

1498

Brocade Network Advisor SAN User Manual

53-1003154-01

Regular Expressions

F

TABLE 8

Greedy quantifiers

Construct

Matches

X?

X, once or not at all

X*

X, zero or more times

X+

X, one or more times

X{n}

X, exactly n times

X{n,}

X, at least n times

X{n,m}

X, at least n but not more than m times

TABLE 9

Reluctant quantifiers

Construct

Matches

X??

X, once or not at all

X*?

X, zero or more times

X+?

X, one or more times

X{n}?

X, exactly n times

X{n,}?

X, at least n times

X{n,m}?

X, at least n but not more than m times

TABLE 10

Possessive quantifiers

Construct

Matches

X?+

X, once or not at all

X*+

X, zero or more times

X++

X, one or more times

X{n}+

X, exactly n times

X{n,}+

X, at least n times

X{n,m}+

X, at least n but not more than m times

TABLE 11

Logical operators

Construct

Matches

XY

X followed by Y

X|Y

Either X or Y

(X)

X, as a capturing group

Advertising