I have a couple of strings,
I’d like to remove the last few numbers.
However, the problem comes as the strings contain the identifier and sometimes contains a number as the name (
) and (
). This means that removing all numbers isn’t possible. I’ve also tried using
string.split("_")[8 or 7 or 6] however, it would sometimes return as nil.
Are there any other solutions?