•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the C# section within the Software Development category of DaniWeb, a massive community of 422,420 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 5,199 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our C# advertiser: Programming Forums
Views: 376 | Replies: 2
![]() |
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
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
Last edited by SubProf : Jun 9th, 2008 at 12:31 pm.
You can parse your webpage and extract URLs from using Regular Expression, then displaying them as list
B.Sc Computer Science, Helwan University
Microsoft Student Partner
Personal blog http://ramymahrous.blogspot.com/
Arabic technical blog http://fci-h-ar.blogspot.com/
English technical blog http://fci-h.blogspot.com/
Microsoft Student Partner
Personal blog http://ramymahrous.blogspot.com/
Arabic technical blog http://fci-h-ar.blogspot.com/
English technical blog http://fci-h.blogspot.com/
Hi RamyMahrous,
I attempted what you suggested but I'm having a problem with the regular expression to extract the URLs. My code is:
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
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
Last edited by SubProf : Jun 10th, 2008 at 12:42 pm. Reason: s
![]() |
•
•
•
•
•
•
•
•
DaniWeb C# Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
- Mail, minimise and browser question. (Visual Basic 4 / 5 / 6)
- Unable to upgrade Internet Explorer browser (Web Browsers)
- Browser Question (JavaScript / DHTML / AJAX)
- Question for ASP.NET/Mozilla Users...or anyone... (ASP.NET)
- Opera web browser question (Techies' Lounge)
Other Threads in the C# Forum
- Previous Thread: Convert double from Small Endian to Big Endian and vice versa
- Next Thread: c# code to convert excel to sql


Linear Mode