<p>I need to loop through all the matches in say the following string:</p>

<p><code>&lt;a href='/Product/Show/{ProductRowID}'&gt;{ProductName}&lt;/a&gt;</code></p>

<p>I am looking to capture the values in the {} including them, so I want {ProductRowID} and {ProductName}</p>

<p>Here is my code so far:</p>

<pre><code>Dim r As Regex = New Regex("{\w*}", RegexOptions.IgnoreCase)
Dim m As Match = r.Match("&lt;a href='/Product/Show/{ProductRowID}'&gt;{ProductName}&lt;/a&gt;")
</code></pre>

<p>Is my RegEx pattern correct?  How do I loop through the matched values? I feel like this should be super easy but I have been stumped on this this morning!</p>

Change your RegEx pattern to
```
\{\w*\}
```
then it will match as you expect.
You can test it with an
online .net RegEx tester
.