matcher: do not prepend '.*' to pattern using ^ after flags
Since the previous commit (fixing wider issue), the code generated strange
regex. This is now fixed and tested.
#require docutils gettext $ $TESTDIR/check-gendoc it checking for parse errors