Bridge

String..::..Replace Method (String, Delegate)

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,
	Delegate callback
)
<TemplateAttribute> _
Public Function Replace ( _
	substr As String, _
	callback As Delegate _
) As String
[TemplateAttribute]
public:
String^ Replace(
	String^ substr, 
	Delegate^ callback
)

Parameters

substr
Type: System..::..String
A String that is to be replaced by newSubStr.
callback
Type: System..::..Delegate

Return Value