Token-mod request

Is it possible to return the value of a statusmarker - ie if red is set to Red9, can I return the value 9 and then use it as a numeric value?
1506407069
The Aaron
Pro
API Scripter
I've thought about that in the past. The best I've come up with is having an attribute with the current number set in it, but that would only work for a token that represents a character.