'(?!.+?<br(?: /)?>.+?<br(?: /)?>)' is a look-ahead assertion,
it verifies that after the position where it starts in the analyzed text, there isn't the suite of characters described as a succession of :

.+? any kind of characters, but the ? orders that this portion must stop as soon as <br> or <br /> is encountered