I am trying to match on number of spaces lower or higher than a specific count.
Example pattern:
x( ){4,}|( ){,2}x
Example data, where it should only match first and last lines:
x x
x x
x x
Incorrectly marked as duplicate. {}+.* quantifiers don't achieve the desired results. And the question is not about syntax.