fix mac regex