Hi I'm very new to regex and I need some help with writing this or at least getting me started.
I would like to get all the divs on the page and put them into a string collection
there might be spaces between the < and div and a spaces between the < / div > thanks
I have tried the htmlaggilitypack but was experiencing issues thats why I am going this way
Dim reg As Regex = New Regex("<div(.*?)> </div")
Dim matches As string() = reg.Matches(htmlCode)
<div id="out">
<div id="one">
< div id="b"></div>
< div id="d"></div>
</div>
<div id="two">
<h1>fsdfsdf</h1>
< div id="a"><div id="a"></div></div>
< / div >
</div>