code: private String antToRegexConverter(String antStyleLocationPattern) {
          String regexStyleLocationPattern = antStyleLocationPattern.replace("\\", "/");
          regexStyleLocationPattern = regexStyleLocationPattern.replaceAll("\\.", "\\\\."); // replace . with \\.
          regexStyleLocationPattern = regexStyleLocationPattern.replaceAll("//", "/");//Solution for known test cases with // issue at org.globus.gsi.proxy.ProxyPathValidatorTest line 536, Needs Review
          regexStyleLocationPattern = regexStyleLocationPattern.replace('?', '.'); // replace ? with .
          regexStyleLocationPattern = regexStyleLocationPattern.replaceAll("\\*", "[^/]*"); //replace all * with [^/]*, this will make ** become [^/]*[^/]*
          regexStyleLocationPattern = regexStyleLocationPattern.replaceAll("\\[\\^/\\]\\*\\[\\^/\\]\\*", ".*"); //now replace the .*.* with just .*
          regexStyleLocationPattern = "^" + this.mainClassPath + regexStyleLocationPattern + "$";  //add the beginning and end symbols, and mainClassPath, if the object is of the type classpath:/
          return regexStyleLocationPattern;
      }
docs: Converts an Ant-style pattern to a regex pattern by replacing (. with \\.), (? with .),
  (** with .*), and (* with [^/]*).
  @param antStyleLocationPattern  An Ant-Stlye location pattern.
  @return A regex style location pattern representation of the antStyleLocationPattern