g/^\(i*\)\1i\([^i]\)/s//\11\2/ g/^\(i*\)\1\([^i]\)/s//\10\2/