I am processing a list of strings, but I want to change the strings so that they do not look ugly to the user. List of examples will be
2736162 Magazines
23-2311 Numbers
1-38122 Faces
5-231123 Newspapers
31-31235 Armynews
33-12331 Celebrities 1
33-22113 Celebrities 2
Cars
Glasses
And I want to trim the beginning so that the ugly sequence of numbers and "-" are omitted, and the user only sees data that makes sense:
Magazines
Numbers
Faces
Newspapers
Armynews
Celebrities 1
Celebrities 2
Cars
Glasses
How would I trim the / - digits at the beginning using regex?
EDIT
Is it possible to create the same REGEX to also remove these values from:
FFKKA9101U- Aquatic Environmental Chemistry
FLVKB0381U- Clinical Drug Development
4761-F-Filosofisk kulturkritik
B22-1U-Dynamic biochemistry
at
Aquatic Environmental Chemistry
Clinical Drug Development
Filosofisk kulturkritik
Dynamic biochemistry
The rule that I would think of is that if there are only uppercase letters, numbers and signs - or + in front of a, this makes sense only for the machine and is not an actual word, and therefore should be deleted, I do not know how to formulate it in regular expression.