I have the following sample file and regular expression.
testing.txt
testing aa
a bc de
e aa
ba Z
testing bb
testing ac
my regular expression using egrep
egrep '[ ]{2,}' testing.txt
The above regular expression attempts to find contiguous white spaces in a line. However, the result returned is empty.
the regulartion expression below works for 1 or more spaces. However that is not what I want.
egrep '[ ]+' testing.txt