Jump to content

IE Help


Dieuz
 Share

Recommended Posts

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
Link to comment
Share on other sites

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])
Link to comment
Share on other sites

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...