Phone number parsing

Hello,

I am trying to parse out the last 4 digits of a phone number coming from the “session.ad.last.attr.mobile” variable. Any help would be appreciated.

Thanks