<?xml version="1.0" encoding="windows-1252"?>
<node id="1018360" title="Re: Having a problem with negative look behind assertion" created="2013-02-12 08:40:23" updated="2013-02-12 08:40:23">
<type id="11">
note</type>
<author id="1016711">
manorhce</author>
<data>
<field name="doctext">
&lt;p&gt;You don't have fixed width of line, look behind or look ahead will only work on fixed width&lt;/p&gt;

&lt;code&gt;use strict;
use warnings;

while(my $line = &lt;DATA&gt;)
{
    chomp($line);
    if( $line =~ /(?&lt;!fee\/src\/)(com\/)/ )
    {
        print $line . "\n";
    }
}
__DATA__
foo/src/com/
foo/src/com/
foo/src/com/
fee/src/com/&lt;/code&gt;</field>
<field name="root_node">
1018345</field>
<field name="parent_node">
1018345</field>
</data>
</node>
