code: public boolean match(String value) {
      value = StringUtils.removeStart(value, "/");
      value = StringUtils.removeEnd(value, "/");
      return pattern.matcher(value).matches();
    }
docs: Returns true if specified value matches this pattern.