Class GlobGenerator
java.lang.Object
com.webcodepro.applecommander.util.GlobGenerator
Utility methods to support glob-style patterns with Apple file names.
Glob patterns supported:
Glob patterns supported:
*= matches zero or more characters?= matches exactly one character**= match any number of directories\x= escape character
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringglobToRegex(String glob, FormattedDisk disk) Transform glob pattern into a regex expression.
-
Constructor Details
-
GlobGenerator
public GlobGenerator()
-
-
Method Details
-
globToRegex
Transform glob pattern into a regex expression. This needs to take into effect the "valid" character set used in the filesystem as well as if directories are supported.
-