I have a string like this
<div tagname="chapter_title" class="CHAP_TTL" aidpstyle="CHAP_TTL">testt</div>
<div tagname="section" id="sec01">
<div tagname="title" class="H1" aidpstyle="H1" id="sec01">
INTRODUCTION<!--title-->
</div>
<div tagname="para" class="CHAP_BM_FIRST" aidpstyle="CHAP_BM_FIRST">test3
<div tagname="emph" class="ITALIC" aidcstyle="ITALIC">buildings</div>
I'm trying to find the DIV that doesnot contain word (emph,section) in tagname attribute
I used the below pattern but its not showing the right output
preg_match_all('/<div tagname="(?!emph)(?!section)(?!footnote)
(?!note).*"/i',$new_updated_html,$divstarttag);
Any takers ??