--max-count=number of matches before stopping search
--exclude=*.txt with -r option
Note: Lookahead and lookbehind are Perl-style regular expression elements, so you'd have to use Perl directly, or GNU grep with the -P option, which then interprets Perl regex.
grep -o pattern file.txt **shows only the matched string**
grep -bn pattern file.txt **shows row and col**
grep -v pattern file.txt **inversion**