$_ = $sentence; print $1,"\n" if /word1(.+)word2/ && 4 < @{[split '\s', $1]}; [download]
In reply to Re: Regex Problem by ccn in thread Regex Problem by remluvr