make regexp more readable
reject // in a path