title: Redaction of regex
body: <p>i'm trying to create a regex for replacing this kind of string :</p>
  <p>(x bla bla bla)</p>
  <p>Im looking for replace (x bla bla bla) by (x) then add new text</p>
  <p>Here my jsfiddle : <a href="https://jsfiddle.net/5f96y13z/1/" rel="nofollow noreferrer">Jsfiddle</a></p>
  <p>here my code :</p>
  <pre><code>var StartingLetter = 'x';
  var NewText = 'Dadidu'
  var regexTest = new RegExp('('+StartingLetter +')',&quot;g&quot;);
              
  $('.select_list option').text(function(i, oldText) {
      //BlankText transform (x bla bla bla) by (x) ==&gt; Doesnt work
      var BlankText= oldText.replace(/\('+StartingLetter +'*?\)/, '('+StartingLetter +')')
  
      //Then i replace with the new sentence (x) by (x Dadidu) 
      return oldText.replace(regexTest, StartingLetter +' '+ NewText);              
  });
  </code></pre>