2
Contributors
2
Replies
3
Views
9 Years
Discussion Span
Last Post by SheSaidImaPregy
0

Regular Expressions should do the trick for this.

//Find the quotation marks in the string
Regex regEx = new Regex("[\"]");
MatchCollection mc = regEx.Matches(string);

//Remove them
foreach (Match matches in mc)
{
  string = string.Remove(matches.Index, 1);
}

It does require some looping, but it's still pretty efficient.

Here's a great resource for regular expressions:
http://regexlib.com/Default.aspx

0

Here was my outcome:
File: ASPX.
Characters: 54,660
Links: 1,000
Times for compiling -
First Page Load: .038695
Cap: .038695
Min: .018880
Avg: .0263867

Realistically at 6 links and 7,000 characters
(and that's over realistic for links)
Average load time: 0.001409
Avg:

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.