---
title: "System::Text::RegularExpressions::Match::Result method"
url: "https://reference.aspose.com/font/cpp/system.text.regularexpressions/match/result/"
product: "Aspose.Font for C++"
description: "System::Text::RegularExpressions::Match::Result method. Formats string by replacing submatch references with their values in C++."
---

## Match::Result method


Formats string by replacing submatch references with their values.

```cpp
virtual String System::Text::RegularExpressions::Match::Result(const String &replacement)
```


| Parameter | Type | Description |
| --- | --- | --- |
| replacement | const String\& | Format string with '$?'-styled substitutions. |

### ReturnValue

Format string with substitutions done.

## See Also

* Class [String](../../../system/string/)
* Class [Match](../)
* Namespace [System::Text::RegularExpressions](../../)
* Library [Aspose.Font for C++](../../../)
