I have a string which contains a sentence and I want to split it in half, based on a word.
I have the regex (\\w+) word which I thought would get me all the words before "word" + "word" itself, then I could just remove the last four chars.
However this doesn't seem to work.. any ideas what I've done wrong?
Thanks.