Suppose I want to delete everything after the last '*' (for example) in a string. Knowing that for this line I can accept the following:
- It will ALWAYS contain '*'
- MAY contain more than one * *
- It will NEVER start or end with the '*' symbol
What is the cleanest and / or shortest way to remove all of the past from the last '*', plus myself, only with base libraries?
source share