Click or drag to resize

ExtensionsReplaceAll Method

Replaces all instances of a given regex with the given replacement

Namespace:  Couchbase.Lite.Util
Assembly:  Couchbase.Lite (in Couchbase.Lite.dll) Version: 2.0.0-b0295
Syntax
C#
public static string ReplaceAll(
	this string str,
	string regex,
	string replacement
)

Parameters

str
Type: SystemString
The string to operate on (implicit)
regex
Type: SystemString
The regex string to search for
replacement
Type: SystemString
The replacement value to use

Return Value

Type: String
A string with all of the given regex expression matches replaced with replacement

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type String. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also