I have a long string stored as a variable I want to trim. It's like:
asvsadfdfSDGADFGkafasflSDAFSAFFVDVVCdfsgsgffngnf-12345678
I'm trying to find a way to store just the last 8 characters or everything to the right of the dash "-".
The values in front of the dash vary in length.
For example in Excel I would use =RIGHT(A1,8) if the string was in cell A1.
=RIGHT(asvsadfdfSDGADFGkafasflSDAFSAFFVDVVCdfsgsgffngnf-12345678,8)
Any ideas?
Thanks!