Can someone please help me in finding a regex that checks in a string if it contains one of the following html break tags?
<br>, <br/>, <br >, <br />
<br\s*/?>
and you should make that case-insensitive (depends on the language or tool you are using). If you want to be that strict to really allow only the four versions you posted (and not multiple spaces), cadrian's version is what you are looking for: <br ?/?>
`. – Dennis98 Sep 20 '16 at 12:48