Idea/Question: Logical combinations matching on single line
Open
- Dominant language
- C++
- Stars
- 5.5k
- Forks
- 816
- Avg merge
- 4d 21h
- Merged PRs (30d)
- 2
Description
Is there a way to scope logical combination matching to the same line?
I want to match a pattern but only if another pattern doesn't match on the same line.
So I want a logical combination like (!A & B) where the expression is true if A and B are on separate lines or A doesn't appear at all, and false if A and B occur on the same line.
Thus far from my experimentation it seems logical combination just operates on the entire stream of content which means instead I have to write logic to capture the start lines of results for two patterns and compare them all to see how they line up.
Thanks!
Contributor guide
Assessment
This issue has not been assessed yet.