public class DollarBraceDecoder extends Object
Modifier and Type | Field and Description |
---|---|
static String |
PATTERN
Match against "${}", where there's at least one of any character
except '}' in between the braces ("{}").
|
Constructor and Description |
---|
DollarBraceDecoder() |
public static final String PATTERN
public static List<String> getTokens(String string)
string
- The String from which to extract the ${} tokens.public static String replaceTokens(String string, String replacement)
string
- The String on which to perform the replacement.replacement
- The replacement string.Copyright © 2013. All rights reserved.