I have this lines, I need to make them all paragraph, <p class="mb-40px"></p>
The first 2 lines, doesn't have html tags, but ending with inappropriate tag. And the third line has also the same inappropriate tag at the end , but had the right tag at the beginning.
Vă pare rău pentru ce aţi făcut?”<br />
”Can you love me?”<br />
<p class="mb-40px">Să ne imaginăm nişte răspunsuri ale agresorului.<br />
Must Become:
<p class="mb-40px">Vă pare rău pentru ce aţi făcut?”</p>
<p class="mb-40px">”Can you love me?”</p>
<p class="mb-40px">Să ne imaginăm nişte răspunsuri ale agresorului.</p>
My both regex are almost good, but duplicates the first tag in the third line
FIND: ^(.*)(<br />)$
REPLACE BY: <p class="mb-40px">\1</p>
OR
FIND: ^(?!<p>)(.+?)(<br />)$
REPLACE BY: <p class="mb-40px">\1<\p>