$ 0 0 See how it is checking for the whole pattern on one line. and not checking the individual lines.