Tolerate ranges in regexes for t and g. Pave way for actual range support.