Text favorites with an expression

Hello everyone,

I would like to know if there is a possibility to use expression (mathematical or others) in text favorites ?

For example, I have an element nam AA_133 and I only want 133.

Or if I have a station 20 and I would like to do some calculation 20/1=1

Best regards,

YoussefB