title: Regex Replace function with Razor
body: <p>I was looking for a way to replace all special characters with a replace function. I want to use the Razor syntax but this</p>
  
  <pre><code>@Product.Name.Regex.Replace(@"[^A-Za-z0-9/\s/g]", "_")
  </code></pre>
  
  <p>does not do the trick.</p>
  
  <p>I've tried this</p>
  
  <pre><code>@Regex.Replace(@Product.Name,@"[^A-Za-z0-9/\s/g]", "_")
  </code></pre>
  
  <p>and it failed as well.</p>
  
  <p>By now I've tried a lot of other things and a lot of times I keep getting this error message:
  "The name 'Regex' does not exist in the current context"</p>
  
  <p>Can anybody please help?</p>