I search for a way to match with exceptions in it. For example I want to match
ab-3/3/6, but I dont want to match
ab-4/2/5:34. Also if
ab-4/2/5:34 exists... I dont want to match it at all.
For this solution I build the following regex:
My problem here is that my desired match only works if there are still characters behind them (like a whitespace, or a new line). So for example I have the following text:
ab-3/3/6 ab-4/2/5:34 ab-6/1/4
My match only contains
That it dind't find
ab-4/2/5 is what I want to archive.
ab-6/1/4 is missing, because here is no character behind it.
Can someone please help me to finde a solution for this problem?