Making regex work under Windows