I would like to match phrases like this:
- having the same issue
- facing the same problem
- have the same question
- I am getting the same issue
- I see the same issue
- I have same issue
But I do not want to match them if they are in the past tense, which means for example that anything containing the word had should be excluded:
- I had the same issue
- have had the same question
Later, I will add other words in past tense.
I tried this regex, but it still matches "the same issue" even if preceded by the word "had"
((?:i\s)?(?:have\s)?(?<!had\s)(?:(?:the\s|a\s)?same\s(?:(?:problem|question|issue)|here)))
https://regex101.com/r/Nvjtqj/1
Why is this regex still finding phrase "same issue" even if it contains word "had" in front of it?