I am trying to parse some text files into a database and there is a string that includes 2 pieces of information in it.
There are a few options for what the string can look like.
It can either look like a single word Word
or it can have that first word, followed by a dash, followed by any number of other words like Word - Second
.
The key though, is that IF the string ends in a number like Word - Second 4
or two numbers separated by a slash like Word - Second 2/3
then those numbers need to be put into a different variable.
I do NOT know enough about regex to do this one. Help? (with explanations?)