EasyManua.ls Logo

SolarWinds UDT - Quantifiers

Default Icon
367 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Regular Expression Pattern Matching
\Z
Matches at the end of the string to which the regular
expression pattern is applied. Matches a position rather than
a character. Never matches before line breaks, except for the
very last line break if the string ends with a line break.
.\Z
matches f
in
abc\ndef
\z
Matches at the end of the string to which the regular
expression pattern is applied. Matches a position rather than
a character. Never matches before line breaks.
.\z
matches f
in
abc\ndef
Quantifiers
Quantifiers Description Example
? (question
mark)
Makes the preceding item optional. The optional item is
included in the match, if possible.
abc?
matches
ab or abc
??
Makes the preceding item optional. The optional item is
excluded in the match, if possible. This construct is often
excluded from documentation due to its limited use.
abc??
matches
ab or abc
* (star)
Repeats the previous item zero or more times. As many
items as possible will be matched before trying
permutations with fewer matches of the preceding item,
up to the point where the preceding item is not matched
at all.
.*
matches
"def"
"ghi" in
abc "def"
"ghi" jkl
*? (lazy
star)
Repeats the previous item zero or more times. The engine
first attempts to skip the previous item before trying
permutations with ever increasing matches of the
preceding item.
.*?
matches
"def" in
abc "def"
"ghi" jkl
364

Table of Contents