Export (0) Print
Expand All

Match.Result Method

Returns the expansion of the passed replacement pattern. For example, if the replacement pattern is $1$2, Result returns the concatenation of Groups[1].Value and Groups[2].Value (Groups(1).Value and Groups(2).Value in Visual Basic).

[Visual Basic]
Public Overridable Function Result( _
   ByVal replacement As String _
) As String
[C#]
public virtual string Result(
 string replacement
);
[C++]
public: virtual String* Result(
 String* replacement
);
[JScript]
public function Result(
   replacement : String
) : String;

Parameters

replacement
The replacement pattern to be used by the function.

Return Value

The expanded version of replacement.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework

See Also

Match Class | Match Members | System.Text.RegularExpressions Namespace

Show:
© 2014 Microsoft