<?xml version="1.0" encoding="windows-1252"?>
<node id="997531" title="Re: A small queestion to match processes" created="2012-10-05 14:41:19" updated="2012-10-05 14:41:19">
<type id="11">
note</type>
<author id="540414">
jwkrahn</author>
<data>
<field name="doctext">
&lt;blockquote&gt;&lt;i&gt;&lt;c&gt;
    #obtain the length to match according to ps aux
   {
        print "#Enter the block just once\n";
        last if $strindex;
        $strindex = index($_, "STAT"); 
        #obtain how characters the RegEx should not match
   } #no more of this besides the first line
&lt;/c&gt;&lt;/i&gt;&lt;/blockquote&gt;
&lt;p&gt;
A simpler way to do that:
&lt;/p&gt;
&lt;c&gt;
    $strindex = $-[0] if ?STAT?;

&lt;/c&gt;
</field>
<field name="root_node">
997529</field>
<field name="parent_node">
997529</field>
</data>
</node>
