Oh, I see the brackets in the original, looks like those were superfluous but they had the `?` after it to make it optional. So you could just do `(?:kits/?)` in order to make the slash optional.