Scala: extract the word before a specific character : <p>I have string like this "abc.def ghi.jkl mno.pqr" and would like to extract the word before each "." and have an output string like "abc ghi mno". How do I do this in Scala?</p>
