public class PatternUtil extends Object
| Constructor and Description |
|---|
PatternUtil() |
public static String smartFix(String pattern)
pattern - public static String smartFix(String pattern, boolean addDotStars)
pattern - addDotStars - if true then if the pattern does not contain one of the expressions .* !^
(at the beginning) $ (at the end), then a .* is added at the
beginning and at the end of the pattern.