I currently have 2 JavaScript variables in which I need to get the values. HTML consists of a series of nested DIVs without id / name attributes. Is it possible to extract data from these variables using HTMLAgilityPack? If so, how will I do this, if not what it takes, regular expressions? If the latter, please help me create a regex that will allow me to do this. Thanks.
<div style="margin: 12px 0px;" align="left"> <script type="text/javascript"> variable1 = "var1"; variable2 = "var2"; </script> </div>
source share