title: Regular expression look-around
body: <p>I am trying to extract text from my Instagram captions using Google Sheets (I use Zapier beforehand to extract the captions). I have trouble understanding the look around / look behind regular expressions.</p>
  
  <p>This is a part of the text:</p>
  
  <pre class="lang-html prettyprint-override"><code>                 ❓
  -----
  : Species distribution is influenced by light availability. The deeper, the darker. Species depending on light, for instance, photosynthetic organisms, only inhabit the top 200 m. In the darker water, organisms found ways to adapt like this viperfish in the video. Do you know how?! Find out on the blog on the featured article.
  ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
  -----
  </code></pre>
  
  <p>I want to catch what is after the "OceanFact: " and before the invisible space (there is an invisible space before the next separator -----). I could also insert a special word that would signal the end of the string if the invisible space doesn't work.</p>
  
  <p>How would you code that? I have tried many things in a regex editor but can't manage to catch what I want.
  I thought <code>(?![OceanFact]+\:\s+)\w(?!⠀)</code> would do the trick but not sure it is the best (the parenthesis contains the invisible character).</p>
  
  <p>It partially works in this <a href="https://regexr.com/" rel="nofollow noreferrer">editor</a> but not in Google Spreadsheet. I can't manage to take the space and punctuation marks between "<code>OceanFact:</code> " and the "⠀" invisible character.
  Not sure where I fail.</p>
  
  <p>Any clue?</p>