1) The parentheses in the pattern control what is output 2) You haven't done anything to make the trailing slash optional