Back references 9, Special constructs (non-capturing) 9 – Brocade Network Advisor SAN User Manual v12.3.0 User Manual

Page 1551

Advertising
background image

Brocade Network Advisor SAN User Manual

1499

53-1003154-01

Regular Expressions

F

TABLE 12

Back references

Construct

Matches

\n

Whatever the nth capturing group matched

Quotation

\

Nothing, but quotes the following character

\Q

Nothing, but quotes all characters until \E

\E

Nothing, but ends quoting started by \Q

TABLE 13

Special constructs (non-capturing)

Construct

Matches

(?:X)

X, as a non-capturing group

(?idmsux-idmsux)

Nothing, but turns match flags on–off

(?idmsux-idmsux:X)

X, as a non-capturing group with the given flags on–off

(?=X)

X, through zero-width positive lookahead

(?!X)

X, through zero-width negative lookahead

(?<=X)

X, through zero-width positive lookbehind

(?<!X)

X, through zero-width negative lookbehind

(?>X)

X, as an independent, non-capturing group

Advertising