NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Regex.Replace (String, String, MatchEvaluator)

.

[Visual Basic]
Overloads Public Shared Function Replace( _
   ByVal input As String, _
   ByVal pattern As String, _
   ByVal evaluator As MatchEvaluator _
) As String
[C#]
public static string Replace(
   string input,
   string pattern,
   MatchEvaluator evaluator
);
[C++]
public: static String* Replace(
   String* input,
   String* pattern,
   MatchEvaluator* evaluator
);
[JScript]
public static function Replace(
   input : String,
   pattern : String,
   evaluator : MatchEvaluator
) : String;

Parameters

input
String to be modified.
pattern
[To be supplied.]
evaluator
[To be supplied.]

Return Value

The modified character string.

Remarks

The RegexMatchEvaluator type is a delegate that takes a single RegexMatch as input and returns a string. It is declared as follows.

public delegate String RegexMatchEvaluator(RegexMatch match);

See Also

Regex Class | Regex Members | System.Text.RegularExpressions Namespace | Regex.Replace Overload List