Help for this page
#obtain the length to match according to ps aux { ... $strindex = index($_, "STAT"); #obtain how characters the RegEx should not match } #no more of this besides the first line
$strindex = $-[0] if ?STAT?;