Hello everyone,

I have a question regarding the web browser in visual studio 2005.

At the moment I have a web browser that navigates to the URL that I have typed into the combobox when the 'GO' button is pressed. I'm wondering is it possible to extract specific links from a webpage and display them as a list in the web browser window without displaying the whole web page?

Thanks in advance

SubProf

You can parse your webpage and extract URLs from using Regular Expression, then displaying them as list

Hi RamyMahrous,

I attempted what you suggested but I'm having a problem with the regular expression to extract the URLs. My code is:

Regex r = new Regex("href\\s*=\\s*(?:(?:\\\"(?[^\\\"]*)\\\")|(?[^\\s]* ))");

the error I'm receiving is:

ArgumentException was unhandled - parsing "href\s*=\s*(?: (?:\"(?[^\"]*)\")|(?[^\s]* ))" - Unrecognized grouping construct

I would appreciate any help with this.

Thanks in advance

SubProf

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.