how to get only integer from text?


What function we can use for only retrieval of integer from text.

example:- mns0001,i want to get only 0001 from that.

THanks in advance,


print strkeep(‘mns0001’,‘0123456789’); //gives the string 0001

print str2int(strkeep(‘mns0001’,‘0123456789’)); converts it into integer and will give you 1

Thanks Kranthi