Anchor a few regexes in handle_loglevel_connect().