The line with barney in it has whitespace at the beginning so /^barney/ won't match.
In reply to Re: matching problem by jwkrahn in thread matching problem by catfish1116