Test results for Solaris x86 |
Test for elements generated from a mix of column ranges and regular expressions are ordered by the same order they are specified on the command line.
Pass
cat _INPUT_DATA_ ¦ xmlfy -C:2r 1-6 -W:2-$ '%( .*def)%' -C:2-$ 12-15 -W:2,4,6 '/.*(abc).*(def.*$)/' -t -e
line 1 abc line 2 abc def line 3 abc line 4 abc def line 5 ghi line 6 abc
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE xmlfy SYSTEM "xmlfy.dtd">
<xmlfy>
<line>
<field>line 2</field>
<field>2 abc def</field>
<field>def</field>
<field>abc</field>
<field>def</field>
</line>
<line>
<field>line 4</field>
<field>4 abc def</field>
<field>def</field>
<field>abc</field>
<field>def</field>
</line>
<line>
<field>line 6</field>
</line>
</xmlfy>