str2reg: support submatch (WIP)