Author: Coool | Posted on: 9/15/2010 11:13:55 AM | Views : 1294

Hi all,
I have been trying for a long time to create regEx function that would retrieve inner html of div but still no luck. What I want to do is to retrieve inner html of div with specific class.
e.g.
Suppose the input is
<body>
.....

<div class="Product"><div class="id">1</div><span>xyz - 1090<br>New Product</span><div>
<div class="Product"><div>2</div><div>
<div class="Product"><div>1</div><br><p>322</p><div>
...
</body>

As you can see inner html itself can contain div tag and have no fixed structure (though will have correct html structure - opening and closing tag). So, how to get the inner html of div with class "Product".
Thanks in advance.

...

Go to the complete details ...