Bridge

String..::..Replace Method (Regex, 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


public string Replace(
	Regex Regex,
	Delegate callback
)
Public Function Replace ( _
	Regex As Regex, _
	callback As Delegate _
) As String
public:
String^ Replace(
	Regex^ Regex, 
	Delegate^ callback
)

Parameters

Regex
Type: Bridge.Text.RegularExpressions..::..Regex
A Regex object. The match is replaced by the return value of parameter #2.
callback
Type: System..::..Delegate

Return Value