'Select the numerical portion of the text to allow quick editing by the user.'

def selectNumber(self):

    le = self.lineEdit()
    text = asUnicode(le.text())
    m = self.opts['regex'].match(text)
    if (m is None):
        return
    (s, e) = (m.start('number'), m.end('number'))
    le.setSelection(s, (e - s))
