string - How to extract URLs from HTML source in vb.net -
my question is: have program fetches whole source code of specified url. source code saved in variable.
part of source code looks this:
"thumbnail_src":"https:\/\/scontent-fra3-1.blablabla.com\/t51.2885-15\/s640x640\/sh0.08\/e35\/1234567_984778981596410_1107218704_n.jpg","is_video":false,
the code has quite bunch of urls. want code part "thumbnail_src":"
marker beginning extraction process , stop extraction @ ","is_video":
this should done in loop until urls being extracted , saved listing variable.
how can achieve that?
i trying regexp sourcecode. 1 codexer wrote, correct getting eerrors in visual basic net.
dim regex regex = new regex("thumbnail_src""": """(.*)""","""is_video") dim match match = regex.match(sourcestring) if match.success console.writeline(match.value) end if
i tried way..and way:
dim regex regex = new regex("thumbnail_src":"(.*)","is_video")
something wrong way entering regex code.
here correct 1 need implement:
https://regex101.com/r/hk0xh8/4
thumbnail_src":"(.*)","is_video
Comments
Post a Comment