View Single Post
  #5 (permalink)  
Old Nov 15th, 2007, 20:18
alexgeek's Avatar
alexgeek alexgeek is offline
Technical Administrator

SuperMember
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 3,770
Blog Entries: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to alexgeek
Re: Website analyser

To jan or anyone who's good with C#
How can add this function to remove html markup:
Code: Select all
string strResult = Regex.Replace(strInput,@"<(.|\n)*?>",string.Empty);
To these functions which finds the matches:
Code: Select all
    public Match find(string reg)
    {
        Regex r = new Regex(reg);
        Match m = r.Match(output);
        return m;
    }
    public MatchCollection find2(string reg)
    {
        Regex r = new Regex(reg);
        MatchCollection m = r.Matches(output);
        return m;
    }
Reply With Quote