Remove JavaScript comments from string with C#
<p>I am trying to remove javascript comments (<code>//</code> and <code>/**/</code>) from sting with C#.
Does anyone have RegEx for it. I am reading list of javascript files then append them to string and trying to clean javascript code and make light to load. Bellow you will find one of the RegEx that works fine with <code>/* */</code> comments but I need to remove <code>//</code> comments too:</p>

<pre><code>content = System.Text.RegularExpressions.Regex.Replace(content,
    @"/\*[^/]*/", 
    string.Empty);
</code></pre>
