com.atlassian.plugin.webresource.transformer
Class SearchAndReplacer
java.lang.Object
com.atlassian.plugin.webresource.transformer.SearchAndReplacer
public class SearchAndReplacer
- extends Object
Performs a search and replace function on a given input.
- Since:
- 2.9.0
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
create
public static SearchAndReplacer create(Pattern pattern,
com.google.common.base.Function<Matcher,CharSequence> replacer)
replaceAll
public CharSequence replaceAll(CharSequence input)
- Replace all occurrences of the pattern in the input, using the given function
Copyright © 2013 Atlassian. All Rights Reserved.