title: extract two hashtags next to each other in r
body: <p>I'm analyzing twitter data and would like to extract all the hashtags in tweets. I used to extract hashtags like this:</p>
  
  <pre><code>tweet = 'I like #apple #orange'
  str_extract_all(tweet,"#\\S+")
  </code></pre>
  
  <p>This works in most situations. But sometimes two hashtags are next to each other.</p>
  
  <pre><code>tweet = 'I like #apple#orange'
  str_extract_all(tweet,"#\\S+")
  </code></pre>
  
  <p>what I got is this:</p>
  
  <pre><code>[[1]]
  [1] "#apple#orange" 
  </code></pre>
  
  <p>Does anyone know how I can properly extract hashtags when they are either separated or next to each other?</p>