Test results for Linux

test_001084_option_columns_regex

Test description

Test for elements generated by regular expressions applied to multi-line
input records.

Test status

 Pass

Run command

cat _INPUT_DATA_ ¦ xmlfy -W '/.*(abc).*(def.*$)/' -F1 delimiter -t -f

Input data

line 1 abc
line 2 abc def
delimiter
line 3 abc
line 4 abc def
line 5 ghi
delimiter
line 6 abc
delimiter

Output result

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE xmlfy SYSTEM "xmlfy.dtd">
<xmlfy>
  <line>
    <field1>abc</field1>
    <field2>def</field2>
  </line>
  <line>
    <field1>abc</field1>
    <field2>def
line 5 ghi</field2>
  </line>
</xmlfy>

Goto:   Top of page.   Section "Environment".   Section "Summary".   Section "Test cases".