I am having difficulty trying to strip out a variable length string at the end of a title text field. There are 4 different cases and they may be a different length. For example,
Yoga Class - Spring
Yoga Class - Summer
Yoga Class - Fall
Yoga Class - Winter
I want my output to just be Yoga Class.
Here is a sample of how it works if I hardcode one of the cases.
Replace(Title;" - Spring","",1,-1,1)
I cannot replace Spring here with a wildcard, such as "*".
Do I have to do this using Boolean logic for all 4 cases?
Thanks for your help.
Yoga Class - Spring
Yoga Class - Summer
Yoga Class - Fall
Yoga Class - Winter
I want my output to just be Yoga Class.
Here is a sample of how it works if I hardcode one of the cases.
Replace(Title;" - Spring","",1,-1,1)
I cannot replace Spring here with a wildcard, such as "*".
Do I have to do this using Boolean logic for all 4 cases?
Thanks for your help.