Dell Vizioncore Guía de usuario Pagina 61

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 180
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 60
Managing Cartridges and Metrics 61
Using the Command Line for Administration Tasks
Groups
()
Parentheses are used to create capturing groups. A
capturing group in a text pattern is used to match sub-
strings in expressions. For example, in the construct
X(Y*)Z, the capturing group (Y*) matches both Y and
YY from the input, returning both XYZ and XYYZ as the
result of the expression.
Capturing groups can be nested and numbered using their
opening parentheses from left to right. For example, in
the construct
(X(Y))(Z)), the groups are numbered as
follows:
((X(Y))(Z)): group 1
(X(Y)): group 2
(Y): group 3
(Z): group 4
\n
Following a series of capturing groups, it acts as a back
reference to match of the nth group.
For example, the expression ([a-d])X\1X\1 has only one
capturing group whose number is one ‘1’. It returns the
following matches:
aXaXa
bXbXb
cXcXc
cXcXc
(?:N)
Indicates that N is a non-capturing group in a construct.
For example, in the construct
(X(?:Y))(Z), the group
(?:Y) is not considered as a capturing group. The groups
in the above construct are numbered as follows.
(X(?:Y))(Z): group 1
(X(?:Y)): group 2
(Z): group 3
For information about capturing groups and their syntax,
see “()” on page 61.
Syntax Description
Vista de pagina 60
1 2 ... 56 57 58 59 60 61 62 63 64 65 66 ... 179 180

Comentarios a estos manuales

Sin comentarios