Jump to content

Recommended Posts

Posted (edited)

Hi,

I know how to retrieve the <body> part of an internet page but how can I retrieve only specific informations, like specific text and display it into a message box?

Let say this is part of the <Body> part in the html page. How can I retrieve this and display it into a msg box?

<p>

<strong>This is your number</strong>: <code>1234 8213 3213 4342</code>&hellip;</p>

I just wannna display: This is your number: 1234 8213 3213 4342

Thx alot <<

Edited by Dieuz
Posted

StringRegExp() is what you need. Here's an example:

$Html="<strong>This is your number</strong>: <code>1234 8213 3213 4342</code>&hellip;</p>"

$Info=StringRegExp($Html,"<strong>This is your number</strong>: <code>(.*?)</code>&hellip;</p>",1)
MsgBox(0,"",$Info[0])

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...