Why this code doesn't work as intended ? I want textBox2 to show all the links(url's) from the site www.walla.co.il [closed]

The match you are looking for is looking for an actual link
<[ignore]a href….>
but the first link you see in the source (the w3c link) is in the head. If you want to get that you would have to remove the hrefs match (eg just find links on the page) or modify it to match

<html lang="he-IL" xml:lang="he-IL" xmlns="http://www.w3.org/1999/xhtml">

However, I suspect you do only want to find links so your code is working correctly.

Sorry about the ignore, StackOverflow kept converting it into actual link 😛

Leave a Comment