title: How to replace specific letters in string without touching the words and letters inside quotes
body: <p>I am trying to replace all spaces in a string expect if the spaces are inside quotes. I want the text inside the quotes to not to be touched at all.
  I know this <code>regexr</code> <code>!((&quot;.+&quot;)|('.+'))</code> but I don't know how to implement it.</p>
  <pre><code>const value = &quot; text text ' text in quotes no touch' &quot;
  value.replaceAll(' ', '+')
  // wanted results &quot;+text+text+' text in quotes no touch'+&quot;
  </code></pre>
  <p><strong>my goal</strong>
  <code> value.replaceAll(if !((&quot;.+&quot;)|('.+')) then change ' ' to '+&quot;)</code></p>