This documentation is archived and is not being maintained.

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
public virtual string Result(
 string replacement
public: virtual String* Result(
 String* replacement
public function Result(
   replacement : String
) : String;


The replacement pattern to be used by the function.

Return Value

The expanded version of replacement.


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