title: RegEx - Match Word Before Single Char, But Not Double Char?
body: <blockquote>
    <p>Iceland :Country\nEurope::Continent\nReykjavik:City</p>
  </blockquote>
  
  <p>with the above string, i would like to match words that appear before a single colon, but not those before a double-colon.  additionally, if there is whitespace before a single colon, i would like it to be ignored and match the word before the whitespace.</p>
  
  <p>so from the above string i would like to match "Iceland"(without the trailing space) and "Reykjavik".</p>
  
  <p>i thought that creating capture groups would work, but it doesn't:</p>
  
  <pre><code>/(\w+(?=:))(?!=::)/gm
  </code></pre>
  
  <p>i don't know how to ignore white space before a single colon.</p>