I understand that ?! is to exclude a pattern, so for example a(?!b) means it will match "a" if "a" is not followed by "b". My question is, suppose I have a file with the following content:
a cat is a cat, a dog is a dog,
a bird is a bird.
How many times will the pattern a(?!.*b) match? Is it 0 times? since all "a"s are before the "b" in the last word "bird"?