dovrebbe bastare

myText.restrict = "-"+"0-9";