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:
SystemAssembly: Bridge (in Bridge.dll)
Syntax
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.