fix regex windows platform