0
<div id="bulletinContents">
    <div class="headingArea">
        <div id="heading">
            Critical Notice Description:&nbsp<br>
            Notice Effective Date:&nbsp<br>
        </div>

        <div id="headingData">Critical notice<br>
            10/16/2013<br>
        </div>
    </div>

    <br>

    <div id="bulletin">
        <br>
        <div id="Div1">Notice Text:</div>
        <br>
        To notify
        <br>
        <br>
    </div>
</div>

there are also other <div> tags on the page, but I want to extract this particular section.

Can anyone please suggest me a proper regular expression for this.

I have used this regex:

<div[^>]*>(?<Value>[^<]*(?:(?!</div)<[^<]*)*)[</div>]*

but it does not give me proper content. It returns only the <div> with id heading and Div1.

I need to complete this task only by using regular expression and nothing else. Please suggest me proper Regex to do it.

Denim Datta
  • 3,740
  • 3
  • 27
  • 53
user2786794
  • 29
  • 1
  • 7

0 Answers0