in reply to matching problem
The line with barney in it has whitespace at the beginning so /^barney/ won't match.