Various functions for expanding partial matches
