title: Regex not escaping a special character
body: <p>If I do</p>
  
  <pre><code>if(childMarkers.length &gt; 0) {
    const [lat, lng] = `${ childMarkers[0].getLatLng() }`.match(/(-?\d+.\d*)/gi);   
    const requiredString = `${ lat } ${ lng }`;
    console.log(requiredString);
  }  
  </code></pre>
  
  <p>I get</p>
  
  <pre><code>45, 9)
  </code></pre>
  
  <p>While I should get</p>
  
  <pre><code>45, 9
  </code></pre>
  
  <p>In order to be able to split it into 2 <code>input .val()</code> like this:</p>
  
  <pre><code>    if(childMarkers.length &gt; 0) {
        const [lat, lng] = `${ childMarkers[0].getLatLng() }`.match(/(-?\d+.\d*)/gi);   
        const requiredString = `${ lat } ${ lng }`;
        $("#longiTude").attr("value",lat);
        $("#latiTude").attr("value", lng);  
      }
  </code></pre>
  
  <p><strong>FULL CODE:</strong></p>
  
  <pre><code>// We draw the markers
  function drawMarkers() {
    var i;
    for (i = 0; i &lt; longitude.length; ++i) {
      pair=[ parseFloat( latitude[i] ) , parseFloat(  longitude[i]  ) ]
      count.push(  pair );
      $("#searchNations").removeAttr("disabled");
      $(this).attr("disabled", "disabled");
      var myYears = $('#years').val();
      $("#ajax-load-more ul").attr("data-meta-value", myYears);
    };
    if(stopAjax == false) {
      console.log("ciao");
      L.MarkerCluster.include({
        spiderfy: function(e) {
          var childMarkers = this.getAllChildMarkers();
          this._group._unspiderfy();
          this._group._spiderfied = this;
          // If there are any childMarkers
          if(childMarkers.length &gt; 0) {
            // Match the lat and lng numbers from the string returned by getLatLng()
            const [lat, lng] = `${ childMarkers[0].getLatLng() }`.match(/(-?\d+(\.\d+)?)/g);   
            // Construct the required string value from the extracted numbers
            const requiredString = `${ lat } ${ lng }`;
            // Use requiredString to populate the value attribute of the input field in OP
            $("#longiTude").attr("value",lat);
            $("#latiTude").attr("value", lng);  
            console.log(requiredString);
            //submitSearchForm();
          }
        },
        unspiderfy: function() {
          this._group._spiderfied = null;
        }
      });
  
      var mcg = L.markerClusterGroup().addTo(map);
      circles = new L.MarkerClusterGroup();
  
      for (var i = 0; i &lt; count.length; i++) {
        var a = count[i];
        var circle = new L.CircleMarker([a[0], a[1]]);
        circles.addLayer(circle);
        circle.on('click', function (e) {
          var curPos = e.target.getLatLng();
          $("#longiTude").val(curPos.lat);
          $("#latiTude").val(curPos.lng);
          console.log(curPos.lng);
          //submitSearchForm();
        });
      }
      // we add the markers to the map
      map.addLayer(circles);
      // we empty the arrays for the future calls
      count = [];
      longitude = [];
      // we set again stopAjax var to true to reset
      stopAjax = true;   
    }
  }
  </code></pre>