Bridge

String..::..Replace Method (Regex, 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,
	string newSubStr
)
Public Function Replace ( _
	Regex As Regex, _
	newSubStr As String _
) As String
public:
String^ Replace(
	Regex^ Regex, 
	String^ newSubStr
)

Parameters

Regex
Type: Bridge.Text.RegularExpressions..::..Regex
A Regex object. The match is replaced by the return value of parameter #2.
newSubStr
Type: System..::..String
The String that replaces the substring received from parameter #1. A number of special replacement patterns are supported; see the "Specifying a string as a parameter" section below.

Return Value