Bridge

String..::..Replace Method (String, Func<(Of <(<'String, Int32, String, String>)>)>)

The replace() method returns a new string with some or all matches of a pattern replaced by a replacement. The pattern can be a string or a Regex, and the replacement can be a string or a function to be called for each match.

Namespace:  System
Assembly:  Bridge (in Bridge.dll)

Syntax


[TemplateAttribute]
public string Replace(
	string substr,
	Func<string, int, string, string> callback
)
<TemplateAttribute> _
Public Function Replace ( _
	substr As String, _
	callback As Func(Of String, Integer, String, String) _
) As String
[TemplateAttribute]
public:
String^ Replace(
	String^ substr, 
	Func<String^, int^, String^, String^>^ callback
)

Parameters

substr
Type: System..::..String
A String that is to be replaced by newSubStr.
callback
Type: System..::..Func<(Of <(<'String, Int32, String, String>)>)>

Return Value