regex - Split column by last word in sentence -


orarq (still another regex question)

I divide the following column into two columns How to go about, make sure that the last column contains the last word in the sentence and everything in the first column occurs.

  X & lt; - c ("This is an exam", "1,2,3 Hello testing", "Foo Bar", "Random 214274 (% * (^ (* Sample", "Some Hyphenenet-Thing")   

Ends with me like this:

  col1 col2 This is a test test 1,2,3 Hello Foo Bar Random 214274 (% * (^ (* Sample of some hyphenate-thing    

This looks like a job to look forward to Find the spaces after things which are not spaces.

  split    

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -