latex build regex