XPath2Functions.Replace Method (string, string, string)XPath2Functions.Replace Method (String, String, String)XPath2Functions::Replace Method (String^, String^, String^)

Implementation of the fn:replace function.

Syntax

Public Shared Function Replace( _
    input As String, _
    pattern As String, _
    replacement As String _
) As String
public static string Replace(
    string input,
    string pattern,
    string replacement
)
public:
static String^ Replace(
    String^ input, 
    String^ pattern, 
    String^ replacement
)
 

Parameters

input

Type: System.StringSystem.StringSystem::String^

The input string.

pattern

Type: System.StringSystem.StringSystem::String^

The regular expression pattern to match.

replacement

Type: System.StringSystem.StringSystem::String^

The replacement string.

Return Value

Type: System.StringSystem.StringSystem::String^

The value of the function.