Replace deprecated QRexExp API

Qt 4.6 saw QRegExp::numCaptures() change to QRegExp::captureCount().