I have a variable text whose value is like below,I need strip of trailing digits,is there a python built-in function to do it..if not,please suggest how can this be done in python

e.g. `-text=A8980BQDFZDD1701209.3` => `-A8980BQDFZDD`