public abstract class RxReplace
extends java.lang.Object
| Constructor and Description |
|---|
RxReplace(java.lang.String regex)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
group(int i)
Returns the input subsequence captured by the given group during the previous match operation.
|
java.lang.String |
replace(java.lang.CharSequence original)
Returns the result of rewriting 'original' by invoking the method 'replacement' for each match of the regular expression supplied to the constructor
|
abstract java.lang.String |
replacement()
Overridden to compute a replacement for each match.
|
public RxReplace(java.lang.String regex)
regex - The regular expression to use for replacementpublic abstract java.lang.String replacement()
public java.lang.String group(int i)
i - The group index (starting at 0)public java.lang.String replace(java.lang.CharSequence original)
original - The original string