Class RegExUtil
- java.lang.Object
-
- io.gitlab.plunts.gradle.plantuml.plugin.RegExUtil
-
public class RegExUtil extends java.lang.ObjectUtility class for regular expressions.
-
-
Constructor Summary
Constructors Constructor Description RegExUtil()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.regex.PatternconvertGlobToRegex(java.lang.String pattern)Converts a standard POSIX Shell globbing pattern into a regular expression pattern.
-
-
-
Method Detail
-
convertGlobToRegex
public java.util.regex.Pattern convertGlobToRegex(java.lang.String pattern)
Converts a standard POSIX Shell globbing pattern into a regular expression pattern. The result can be used with the standardPatternAPI to recognize strings which match the glob pattern.See also, the POSIX Shell language: http://pubs.opengroup.org/onlinepubs/009695399/utilities/xcu_chap02.html#tag_02_13_01
- Parameters:
pattern- A glob pattern.- Returns:
- A regex pattern to recognize the given glob pattern.
-
-