I have code craw data and I have write data to file txt but it get all html tags ! I only want get numbers ! help me !
my code : http://www.4shared.com/file/sAoasNMU/wrcode.html

Recommended Answers

All 2 Replies

This method will remove everything that is between < > characters, including the < and >:

public string StripHTML(string text) {
    return Regex.Replace(text, @”<(.|\n)*?>”, string.Empty);
}

You'll need to include using System.Text.RegularExpressions; at the top of your code.

Thank You verry much !

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.