title: Disabling Global for Regex
body: <p>I want to turn off the Global setting (as it is set default to be used on .NET) as what I am trying to do only needs to change the first part of a string, however there is the the chance that it will occur twice in the string, for example I wish for </p>
  
  <blockquote>
    <p>C00000WPF0000SAND </p>
  </blockquote>
  
  <p>to only change the first instance of 0's.</p>
  
  <pre><code>if (Regex.IsMatch(text, "^[a-z]+00+", RegexOptions.IgnoreCase))
  {
      text = Regex.Replace(text, "0{1,}", "00*", RegexOptions.IgnoreCase);
  }
  </code></pre>
  
  <p>This is how I am currently doing it, however this seems to take every single instance of the "00+" and change it but this messes things up.</p>