got regex compiler working