public class RegexUtil extends Object
| Constructor and Description |
|---|
RegexUtil() |
| Modifier and Type | Method and Description |
|---|---|
static String |
replaceMatch(String replacePattern,
String data) |
static String |
replaceVersion(String regex) |
static String |
simpleMatch(Pattern pattern,
String data) |
public static String simpleMatch(Pattern pattern, String data)
pattern - Pattern to find containing a single group to match. The group is mark in parentheses.data - The source of data to process (URI, filename, js content, ..)public static String replaceMatch(String replacePattern, String data)
replacePattern - The format expected is /(FIND_SOMETHING)/(REPLACE_BY_SOMETHING)/data - The source of data to process (URI, filename, js content, ..)Copyright © 2018. All rights reserved.