Java.Util.Regex.Matcher.AppendReplacement Method
Appends a literal part of the input plus a replacement for the current match to a given Java.Lang.StringBuffer.

Syntax

[Android.Runtime.Register("appendReplacement", "(Ljava/lang/StringBuffer;Ljava/lang/String;)Ljava/util/regex/Matcher;", "")]
public Matcher AppendReplacement (Java.Lang.StringBuffer buffer, string replacement)

Parameters

buffer
the StringBuffer to append to.
replacement
the replacement text.

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.Lang.IllegalStateExceptionif no successful match has been made.

Remarks

Appends a literal part of the input plus a replacement for the current match to a given Java.Lang.StringBuffer. The literal part is exactly the part of the input between the previous match and the current match. The method can be used in conjunction with Matcher.Find and Matcher.AppendTail(Java.Lang.StringBuffer) to walk through the input and replace all occurrences of the Pattern with something else.

[Android Documentation]

Requirements

Namespace: Java.Util.Regex
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1