Support for -o (--only-matching), which prints only the matching part of the line

This is based on the earlier pull request from @JSmith-BitFlipper in #454. Thanks Geoff.