Is there a way to get first part of a String before 4 numbers in ().
Input String: "Some Title (2000) some text."
Output String: "Some Title "
I don’t want to iterate over matches and get first. I want regex to get the characters before 4 numbers in () and I want it to discard the rest of the text.
The Regexp would be something like
For usage in Java you need to escape backshlashes and the output string is at group 1.