Simplified by using the index property of the array returned from RegExp.exec.
Simplified by using the index property of the array returned from RegExp.exec.

svn path=/trunk/KDE/kdelibs/kate/; revision=804083

sandsmark/kate,hlamer/kate,hlamer/kate,DickJ/kate,hlamer/kate,sandsmark/kate,jfmcarreira/kate,hlamer/kate,hlamer/kate,DickJ/kate,DickJ/kate,DickJ/kate,cmacq2/kate,sandsmark/kate,jfmcarreira/kate,jfmcarreira/kate,cmacq2/kate,sandsmark/kate,hlamer/kate,cmacq2/kate,hlamer/kate,hlamer/kate,hlamer/kate,hlamer/kate