Advantech VisionNavi User Manual page 78

Table of Contents

Advertisement

[String Operations (String manipulation)]
Function name Overview
regexp_match
regexp_replace
regexp_select
regexp_test
split
str_first_n
str_last_n
strchr
strlen
strrchr
strrstr
strstr
substr
VisionNavi User Manual
Extract substrings using regular expres-
sions.
Replace a substring using regular expres-
sions.
Select tuple elements matching a regular
expression.
Test if a string matches a regular expres-
sion.
Split strings into substrings using predefined
separator symbol(s).
Cut the first characters up to position "n" out
of a string tuple.
Cut all characters starting at position "n" out
of a string tuple.
Forward search for characters within a
string tuple.
Determine the length of every string within a
tuple of strings.
Backward search for characters within a
string tuple.
Backward search for strings within a string
tuple.
Forward search for strings within a string
tuple.
Cut characters from position "n1" through
"n2" out of a string tuple.
Example of use
Matches :=
regexp_match(Data, Expres-
sion)
Result :=
regexp_replace(Data,
Expression, Replace)
Selection :=
regexp_select(Data, Expres-
sion)
NumMatches :=
regexp_test(Data, Expres-
sion) or
NumMatches := Data =~
Expression
Substrings := split(String,
Separator)
Substring := str_firstn(String,
Position)
Substring := str_lastn(String,
Position)
Position := strchr(String,
ToFind)
Length := strlen(T1)
Position := strrchr(String,
ToFind)
Position := strrstr(String,
ToFind)
Position := strstr(String,
ToFind)
Substring :=
String{Position1:Position2}
72

Advertisement

Table of Contents
loading

Table of Contents