I was doing some exercises on regular expressions, but I can't seem to be able to crack this one :
egrep in a file where the 2nd and 3rd character are the same.
I tried :
egrep '^..{2}' /usr/share/dict/dutch
However this is wrong, how should I match the 2nd and 3rd character in a regex? How would I match the 2nd and 4th character in a regex (not an exercise, but I would like to know this one as well.)?