title: Extracting words separated by special sign (regex)
body: <p>I have some sting like <code>"John a11|a12|\n  Ana a21|a22|\n  Jake a31|a23|\n   "</code>
  I would like to extract all parts seperated by <code>"|"</code> using regex.</p>
  
  <p>So I want the output</p>
  
  <p><code>"John a11" "a12" "Ana a21" "a22" "Jake a31" "a23"</code></p>
  
  <p>And ideas how to create proper regex or maybe it requires just some function in R?</p>