Advertisement
PatPositron

FB Regex

Dec 7th, 2013
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 0.30 KB | None | 0 0
  1. Dim RegexPattern As String = "<img class=""profilePic img"" src="".+.jpg"" alt=""\w+.\w+"" />"
  2. Dim Regex As New Regex(RegexPattern)
  3.  
  4. For Each Match As Match In Regex.Matches(Page)
  5.     If Match.Success Then
  6.         'Do your thing here. It will return the image url first, then the Name
  7.     End If
  8. Next
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement