I have some strings like 2015 - THIS Test and 2015 - THAT Test.
I want to have the part THIS Test or THAT Test so I tried this:
"2015 - THIS Test"[/((THIS|THAT)\s\.*)/]
But that only gives me THIS or THAT.
- Why does it cut the rest?
- How to get the desired substring correctly?
I don't want to rely on just cutting the first 7 characters.
\.