@Test public void regexWithEscapedAngleBracketsCanBeResolved() { String regex = "[a-zA-Z0-9\\\\{](-[a-zA-Z0-9])-[a-zA-Z0-9]{12}"; Element element = buildElement("/{id:" + regex + "}"); PathDetails pathDetails = new PathDetails(element); assertThat(pathDetails.getRegex("id")).isEqualTo(regex); }
public String getRegex(String paramName) { return regexes.get(paramName); }
PathDetails { public String getRegex(String paramName) { return regexes.get(paramName); } }
PathDetails { public String getRegex(String paramName) { return regexes.get(paramName); } PathDetails(Element element);  PathDetails(
            Element element,
            PathDetails basePath); }
PathDetails { public String getRegex(String paramName) { return regexes.get(paramName); } PathDetails(Element element);  PathDetails(
            Element element,
            PathDetails basePath); String getValue(); String getRegex(String paramName); @Override String toString(); @Override boolean equals(Object o); @Override int hashCode(); }
PathDetails { public String getRegex(String paramName) { return regexes.get(paramName); } PathDetails(Element element);  PathDetails(
            Element element,
            PathDetails basePath); String getValue(); String getRegex(String paramName); @Override String toString(); @Override boolean equals(Object o); @Override int hashCode();  }