Fix bsd regex