class PathElement {

   public boolean matches(String path)
   {
      int start = 0;
      if (path.charAt(0) == '/') start++;

      Matcher matcher = pattern.matcher(path);
      matcher.region(start, path.length());
      return matcher.matches();
   }

   public  PathElement(String value, List<Group> groups, String regex);

}