I am trying to extract the last four digits of a string. The string is in this format: lastname,firstname-XXXX the XXXX are 4 numbers. I tried using a split function to extract everything after the “-” but sometimes the lastname and firstname have a “-” in them. So, I just need a simple way to always extract the last four numbers of the string.
Thanks in advance!