Using Page Render Vs ResponseFilters
<p>Basically i am looking at a way of removing script tags for a given page.I have done this using a RegEx to do this "src=\"({0})\"."  in  override void Render(HtmlTextWriter writer) method.But i have found that the the Time for the First Byte increases if the HTML is manipulated in the Render Method.I am wondering if there is a better way to do this using ResponseFilters without a compromise on the performance </p>

<pre><code>                StringBuilder regExpressionForScriptTags = new StringBuilder();
                regExpressionForScriptTags.AppendFormat("&lt;script .*src=\"({0})\".*&lt;/script&gt;", sRepalcableScripts);

                Regex scriptTags = new Regex(regExpressionForScriptTags.ToString(), RegexOptions.Compiled | RegexOptions.IgnoreCase);
                MatchCollection collection = scriptTags.Matches(RawHtml);

                int? firstMatchPosition = null;

                RawHtml = scriptTags.Replace(RawHtml, new MatchEvaluator(delegate(Match match)
                {
                    if (!firstMatchPosition.HasValue)
                        firstMatchPosition = match.Index;

                    return string.Empty;
                }));
</code></pre>
