Looking to capture from html into groups as Header, Name and Val
The HTML can vary, but this is how it would typically look
<div>
<h5>Header 1</h5>
<strong>Name1</strong>
Value 1 <br>
<strong>Name2</strong>
Value 2 <br>
<div>
<h5>Header 2</h5>
<strong>Name1</strong>
Value 1 <br>
Value 1 continued
<strong>Name2</strong>
Value 2 <br>
<h5>Header 3</h5>
<strong>Name1</strong>
Value 1 <br>
Value 1 continued
<strong>Name2</strong>
Value 2 <br>
<br>
</div>
</div>
This what I started using, but this relies that nothing is after the <br>
string pattern = "((<h5>(?<Header>.*?)<\\/h5>)|(<strong>(?<Name>.*?)<\\/strong>)|( (?<Val>.*?)<br>))