I'm trying to write a regex which will capture two or more whitespaces excluding leading whitespaces. Let's take the bellow example
One OS to rule them all,
One OS to find them.
One OS to call them all,
And in salvation bind them.
In the bright land of Linux,
Where the hackers play.
I want it to become
One OS to rule them all,
One OS to find them.
One OS to call them all,
And in salvation bind them.
In the bright land of Linux,
Where the hackers play.
By using this regex ([ ]* ){2,}
I can capture two or more whitespaces. The problem with this is that it also captures the leading whitespaces on lines 2 - 5.
Note: I want to use this regex inside Intellij IDEA.