<?xml version="1.0" encoding="windows-1252"?>
<node id="723392" title="Re: read multiple lines" created="2008-11-13 04:51:46" updated="2008-11-13 04:51:46">
<type id="11">
note</type>
<author id="495617">
Punitha</author>
<data>
<field name="doctext">
&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;If you want the content in between 'begin' and 'end process' means try like this,&lt;/p&gt;
&lt;c&gt;
use strict;
my $string ='hfkjd
process jhk
start
begin
output1
output2
end process
scrap
hkl
process khfk
shoot
hooter
begin
output3
end process';

while($string=~/\bbegin((?:(?!end process).)*)end process/sg){
	print "IN:$1\n";
}
&lt;/c&gt;
&lt;p&gt;or tell us clearly what you really need and what you tried so far?&lt;/p&gt;
&lt;p&gt;Punitha&lt;/p&gt;</field>
<field name="root_node">
723383</field>
<field name="parent_node">
723383</field>
</data>
</node>
