title: Regex to fetch all spaces as long as they are not enclosed in brackets
body: <p>Regex to fetch all spaces as long as they are not enclosed in braces</p>
  
  <p>This is for a javascript mention system</p>
  
  <p>ex: "Speak @::{Joseph Empyre}{b0268efc-0002-485b-b3b0-174fad6b87fc}, all right?"</p>
  
  <p>Need to get:</p>
  
  <blockquote>
    <p>[ "Speak ", "@::{Joseph
    Empyre}{b0268efc-0002-485b-b3b0-174fad6b87fc}", ",", "all ", "right?"
    ]</p>
  </blockquote>
  
  <p>[Edit]</p>
  
  <p>Solved in: <a href="https://codesandbox.io/s/rough-http-8sgk2" rel="nofollow noreferrer">https://codesandbox.io/s/rough-http-8sgk2</a></p>
  
  <p>Sorry for my bad english</p>