fix regex usage