Fixed error in regexp solving #8.