Why not ``MPD_SEARCH_QUERY_PART_RE.match(query_part)``?