public final class GlobExpander extends Object
Strings.expandGlob(String)| Modifier and Type | Method and Description |
|---|---|
static List<String> |
expand(String globPattern)
Expands a string with braces ("{}") into all of its possible permutations.
|
public static List<String> expand(String globPattern)
The only special characters in this glob syntax are '}', '{' and ','
The top-level pattern must not contain any commas, but a "one-of" group separates its elements with commas, and a one-of group may contain sub one-of groups.
For example: start{a,b,c}end -> startaend, startbend, startcend start{a,{b,c},d} -> startaend, startbend, startcend, startdend {a,b,c} -> a, b, c start{a, b{x,y}} -> starta, startbx, startby
globPattern - a string in the format described aboveCopyright © 2023 The Apache Software Foundation. All rights reserved.