updated regex in routing snippets