Examples Of Regular Expressions - Siemens SINUMERIK 840D sl Operating Manual

Sinumerik integrate create myconfig - diff, expert, topo
Hide thumbs Also See for SINUMERIK 840D sl:
Table of Contents

Advertisement

Create MyConfig - Diff
A Use of regular expressions in Diff
A.3

Examples of regular expressions

Regular expression
^\[[^\]]+\]
①②③④⑤
The regular expression is described below from the left to the right:
^\[[^\]]+\]
^\[[^\]]+\]
^\[[^\]]+\]
^\[[^\]]+\]
^\[[^\]]+\]
^\[[^\]]+\]
^\[[^\]]+\]
^\[[^\]]+\]
^\[[^\]]+\]
^\[[^\]]+\]
^\[[^\]]+\]
Regular expression
^[^=]+=
①②③④⑤
The regular expression is described below from the left to the right:
^[^=]+=
88
Charac‐
Description
ter
Describes a section, e.g.
At the beginning of the line there should be an "open square brack‐
et" [ and then there should be at least one character other than a
"close square bracket" ] followed by a "close square bracket" ].
The remainder up to the end of the line is not specified.
...
Numbers indicate the position of the character in the regular ex‐
pression.
Here, the beginning of the line, i.e. the described expression should
^
be located at the beginning of the line.
Escape character; the "open square bracket" [ should stand for
\
itself as literal and not as meta character of a character set.
Character stands for itself, i.e. at the beginning of the line there
[
should be an "open square bracket[.
Starting definition of a character set (character is a meta character).
[
Here, a negation character, i.e. the characters specified in the char‐
^
acter set, should not occur.
The character negation is only possible within square brackets,
therefore, brackets are used for characters
Escape character; the "close square bracket" ] should stand for
\
itself as literal and not as meta character of a character set.
This character stands for itself.
]
End definition of a character set
]
Requires one match or as many matches as specified, i.e. there
+
must be at least one character, which is not a "]".
Escape character; the "close square bracket" ] should stand for
\
itself as literal and not as meta character of a character set.
This character stands for itself.
]
Charac‐
Description
ter
Describes a value assignment (identifier = value)
Version = 1.0.3
e.g.
At the beginning of the line there should be at least one character,
which is
for the "identifier" in the value assignment.
This should then be followed by an equal sign "=" and the remainder
of the line, the value, is not specified.
...
Numbers indicate the position of the character in the regular ex‐
pression.
Here, the beginning of the line, i.e. the described expression should
^
be located at the beginning of the line.
[Version]
not an equal sign "=". This expression (^[^=]+) stands
SINUMERIK Integrate Create MyConfig - Diff, Expert, Topo
Operating Manual, 11/2016, A5E36537479B-AD
and
.

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 828d

Table of Contents