BOS, BOF
Matches beginning of string
output type
quantifier
configuration
none
none
none
Extracting the first line in the string:
"name";"age"Homer Simpson;40Charles Montgomery Burns;104
BOF LD:header EOL;
Results in the first line parsed into the header
field. Parsing following lines fails, as they do not begin at the start of file marker.
''name'';''age''
MOS, MOF
Matches any bytes in the middle of string
output type
quantifier
configuration
none
none
none
Extracting records after the first row in the string
"name";"age"Homer Simpson;40Charles Montgomery Burns;104
MOF LD:name ';' INT:age EOL
Results in lines 2 and 3 parsed to fields name
and age
. Line 1 fails to parse as it begins with the beginning of the string marker.
-1
Homer Simpson
40
Charles Montgomery Burns
40
EOS, EOF
Matches end of string
output type
quantifier
configuration
none
none
none
Extracting the last line of the string:
"name";"age"Homer Simpson;40Charles Montgomery Burns;104total:2 persons, average age: 72 years
The following pattern matches only when the last line is followed by the end of string marker:
LD:footer EOS
Results in the last line being extracted to the footer
field. First three lines fail to parse as they are not the last in the string.
total:2 persons, average age: 72 years