Trying a few things with negative and positive look-behind, can't really get exactly what I want. Went through this SO question as well: Regex match a substring if that substring is not preceded by a specific string?
What I want is just a "yes this entire string should be considered" and a "no, ignore this entire string", because of these substring matches. The post above will help me match the substring, but if the negative words precede the substring, it's still a match, you can see my tests here: https://regex101.com/r/aqn1gO/2
What I'm trying to do is have a regex match for the substring i need, but ignore cases where it's not a request, but more a question. The examples are:
- i need you to do this
- hey i need this by tomorrow
- hey do i need this in the deliverable?
- hey should i need to do this?
- how are you doing today?
Where 1. and 2. should match, but 3., 4., and 5. should not, even though there's an i need in there.