Bridge

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


public string Replace(
	Regex Regex,
	Func<string, string> callback
)
Public Function Replace ( _
	Regex As Regex, _
	callback As Func(Of String, String) _
) As String
public:
String^ Replace(
	Regex^ Regex, 
	Func<String^, String^>^ 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..::..Func<(Of <(<'String, String>)>)>

Return Value