title: Regular expression to grab word before a certain character R Perl
body: <p>I need to get words before and after a unique character (in my case: &amp;) in a string in R.</p>
  
  <p>I need to get 'word1' from something like this:
  "...something something word1 &amp; word2 something..."</p>
  
  <p>I can get the word after using a Perl regular expression in R: <code>(?&lt;=&amp; )[^ ]*(?= )</code>
  (It seems to behave the way I would like. I got it from combing answers I found on this site)</p>
  
  <p>I now need to get the word preceding the <code>&amp;</code> symbol. The length of the words change and the number of other preceding words, and also spaces, change. Word one could be letters and numbers, just bound by spaces on either side.</p>