F Regular Expressions

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

 

 

XY

Either X or Y

 

 

(X)

X, as a capturing group

 

 

1336

Brocade Network Advisor IP User Manual

 

53-1003056-01

Page 1388
Image 1388
Brocade Communications Systems IP250 Regular Expressions Greedy quantifiers, Reluctant quantifiers, Possessive quantifiers