2 Replies - 233 Views - Last Post: 19 February 2019 - 04:46 AM Rate Topic: -----

#1 VXFox   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 19-February 19

String parsing help

Posted 19 February 2019 - 04:08 AM

Hello,

I am working on a little project that can download and trim web page source code.
I am struggling to use the string parsing commands to get all text to the right of a specific line in the HTML code.

The program so far is able to retrieve the source code to any given page, but needs to be able to find a specific string(s) and store all of the text to the right of said string. eg;

<meta property="og:title" content="@@@@" />
    <meta property="og:image" content="text to capture here" />
    <meta property="og:description" content="@@@@" />


I am looking to only retrieve the text following
<meta property="og:image" content="
and trim off the last
 " />" 


The length of text to capture is not fixed and varies in length.

Any help would be greatly appreciated

Thanks!

Is This A Good Question/Topic? 0
  • +

Replies To: String parsing help

#2 andrewsw   User is online

  • never lube your breaks
  • member icon

Reputation: 6813
  • View blog
  • Posts: 28,186
  • Joined: 12-December 12

Re: String parsing help

Posted 19 February 2019 - 04:30 AM

Please confirm that you are using VB6 (defunct) and not VB.NET?

How are you currently parsing the data? Are you just downloading and parsing a string, as text?
Are you using Regex (preferably not)?
Was This Post Helpful? 0
  • +
  • -

#3 VXFox   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 19-February 19

Re: String parsing help

Posted 19 February 2019 - 04:46 AM

Hi Andrew,

Yes, I'm currently using the old and rusty VB6.
At the moment the app downloads any given page to a local .html file and loads the source code it into a rich text box within the app.

There is a ton of HTML code but I'm only looking to pickup the code following the line above & ignore everything else.

Thanks
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1