String with different character classes

Hi i’m i have a value and i’m trying to remove everything except numbers from it here it is

local t = string.gsub( defaultBox.text, “%a”, “”  ) 

This removes all the letters from my value but the “. / -” are still there and the problem if that if i do like this

local t = string.gsub( defaultBox.text, “%a - / .”, “”  ) 

then it dosen’t work so how do i select multiple characters to replace (%a is all letters).

I would advise removing in stages.  First pass for alpha, second pass for maths symbols, etc

Thanks

I would advise removing in stages.  First pass for alpha, second pass for maths symbols, etc

Thanks