The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft