drop regex usage for gcc < 4.9