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 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:
StringA string with all of the given regex expression matches replaced with
replacementUsage 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