If I have expression in a string variable like this 20+567-321
, so how can I extract last number 321
from it where operator can be +
,-
,*
,/
If the string expression is just 321
, I have to get 321
, here there is no operator in the expression