I have an html input from a method from which i need to remove the email address. The problem is the email address is not coming inside a div. Its split across multiple divs. Find the sample input below
div class="p" id="p9" style="top:89.17999pt;left:430.7740pt;font-family:Times New Roman;font-size:1.0pt;">hello</div>
div class="p" id="p10" style="top:89.17999pt;left:484.100pt;font-family:Times New Roman;font-size:1.0pt;">.</div>
div class="p" id="p11" style="top:89.17999pt;left:487.100pt;font-family:Times New Roman;font-size:1.0pt;">p</div>
<div class="p" id="p1" style="top:89.17999pt;left:493.9300pt;font-family:Times New Roman;font-size:1.0pt;">@</div>
div class="p" id="p13" style="top:89.17999pt;left:0.09003pt;font-family:Times New Roman;font-size:1.0pt;">gmail</div>
div class="p" id="p" style="top:89.17999pt;left:33.18pt;font-family:Times New Roman;font-size:1.0pt;">.</div>
<div class="r" style="left:79.84pt;bottom:9.pt;width:479.98004pt;height:1.71997pt;background-color:#d9d9d9;"> </div>
div class="p" id="p1" style="top:89.17999pt;left:3.18pt;font-family:Times New Roman;font-size:1.0pt;">com</div>"
and the regex we are using is [A-Z0-9._%+-]+@[A-Z0-9.-]+\\.[A-Z]{2,6}
which only gives standard email format. Any help will be really appreciated.
Edit: removed the div start tag as it was parsed to text by the page.