In the HTML page, I will need to match all innerHTML one by one.
I make a REGEX wich permit to match all tag except innerHTML (include BR tag) but I can not do the opposite...
([<][^br][^<]*[>])
You can see an example on this URL : https://regex101.com/r/h9tKHj/1
On this DOM :
<li class="product-faq-item">
<p class="product-faq-title">{{XXXXXXXXXXXX1}}</p>
<div class="product-faq-container">
<p class="product-faq-text">{{XXXXXXXXXXXX2}}<br>
{{XXXXXXXXXXXX3}}
</p>
</div>
</li>
<li class="product-faq-item">
<p class="product-faq-title">{{XXXXXXXXXXXX4}}</p>
<div class="product-faq-container">
<p class="product-faq-text">{{XXXXXXXXXXXX5}}</p>
</div>
</li>
My goal is to recover this :
Match 1 : {{XXXXXXXXXXXX1}}
Match 2 : {{XXXXXXXXXXXX2}}
Match 3 : {{XXXXXXXXXXXX3}}
Match 4 : {{XXXXXXXXXXXX4}}
Match 5 : {{XXXXXXXXXXXX5}}
Thanks in advance for your help !
Have a nice day,
Anthony,