Within a specified input string, replaces all strings that match a specified regular expression with a specified replacement string.
Namespace: SeleniumAssembly: Selenium (in Selenium.dll) Version: 2.0.9.0 (2.0.9.0)
Syntax Dim instance As Utils
Dim input As String
Dim pattern As String
Dim replacement As String
Dim returnValue As String
returnValue = instance.Replace(input,
pattern, replacement)
Parameters
- input
- Type: SystemString
The string to search for a match. - pattern
- Type: SystemString
The regular expression pattern to match. - replacement
- Type: SystemString
The replacement string.
Return Value
Type:
StringA new string that is identical to the input string, except that a replacement string takes the place of each matched string.
See Also