fix ugly bugs in TRE regex parser