Metrohm viva 1.1 (ProLab) User Manual
Page 521
■■■■■■■■■■■■■■■■■■■■■■
5 Method
viva 1.1 (for process analysis)
■■■■■■■■
509
Comparison
Entry of a character string that is to be compared with the incoming data
of the actions Read, Wait for and Poll. Here it is possible for so-called
regular expressions to be entered. With the aid of these precisely
defined search patterns, you can interpret received character strings and
save certain contents from them in a sample data variable. Regular expres-
sions are often used in computer science (operating systems UNIX or
LINUX, script languages PERL, etc.) and have become largely standardized.
viva makes full use of Extended Regular Expressions in accordance
with Java
).
Entry
100 characters
Examples for Regular Expressions:
Expression
Meaning
Example
[abc]
OR function for individual
characters
Receive a or b or c
[a-z0-9]
One character in the speci-
fied range
m or 5
(hallo)
Substring
Character string contains
hallo
^hallo
Start of line
hallo stands at the start
of the line
hallo$
End of line
hallo stands at the end of
the line
.
Any single character
a or 4 or - or …
\.
Period
.
\d
One digit
3
\d+
More than one digit
324567
\d{4}
Four digits
3143
\D
Not one digit
A or ! or …
\w
One digit or one letter of
the alphabet
a or 3
\W
Neither digit nor letter of
the alphabet
! or .
.*
Any character string
abcd or 41 or -$=$ or …
Any combinations of regular expressions are possible.