This is the test case:
<td>ARMOIRE 6 PORTES <span style="font-family: arial;"><u style="color: rgb(170, 170, 170);">:</td><td>Longueur : 297 cm - Profondeur : 73 cm - Hauteur : 260 cm.</span><br></td></tr><tr><td><b><u>ARMOIRE 4 PORTES <span style="font-family: arial;"><u style="color: rgb(170, 170, 170);">:</td></tr><tr><td>Chevet
And here's my solution: (?<=&)(?!.<).?(?=[A-Z])
Basically I want to select everything between a & and the first instance of [A-Z], but not if it contains a html tag bracket. At first I thought it doesn't work, because it didn't - not in Notepad++, not on regex101.com
However, if I modify the test string
<td>ARMOIRE 6 PORTES <span style="font-family: arial;"><u style="color: rgb(170, 170, 170);">:</td><td>Longueur : 297 cm - Profondeur : 73 cm - Hauteur : 260 cm.</span><br></td></tr><tr><td><b><u>ARMOIRE
4 PORTES <span style="font-family: arial;"><u style="color: rgb(170, 170, 170);">:</td></tr><tr><td>Chevet
then it works. test on regex101
I would like to understand why and how I can modify my regex to cover both cases - if possible.