I have a string that have this format:
some text <br>septembar 1989<br>
And I'm using this regex find the month and year part
<br/?>(?!=b\.)(.*?\b\d{4}\b)
and I get what i want-septembar 1989
However, I now have situation when <br> is inserted
<br>some text <br>septembar 1989<br>
result: some text <br>septembar 1989
Can you suggest how to modify my existing pattern to support both cases? I guess I need somehow to exlude <br> from matching in .*?