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
.