- improved regex for trailing /