<?xml version="1.0" encoding="windows-1252"?>
<node id="1017894" title="Re: Parsing output from the CSV file" created="2013-02-08 17:14:36" updated="2013-02-08 17:14:36">
<type id="11">
note</type>
<author id="844862">
GotToBTru</author>
<data>
<field name="doctext">
You never introduce the | character.

I would suggest replacing:
&lt;code&gt;
print $reg_exp;
&lt;/code&gt;
with 
&lt;code&gt;
$accum .= "$reg_exp,";
&lt;/code&gt;

and then when ready to output your pipe delimited expression:
&lt;code&gt;
$accum =~s/,$//;
$accum =~ s/,/|/g;
print $accum;
&lt;/code&gt;


</field>
<field name="root_node">
1017681</field>
<field name="parent_node">
1017681</field>
</data>
</node>
