ENH: condense asterisk regexs for speed