Replace deprecated QRexExp API

Qt 4.6 saw QRegExp::numCaptures() change to QRegExp::captureCount().
Merge pull request #1426 from simonsonc/qgsvaluemapconfigdlg-deprecated-api

Replace deprecated QRexExp API