For #85, Regexp for detecting and replacing URL segments