Jump to content
Sign in to follow this  
Dieuz

IE Help

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

Share this post


Link to post
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])

Share this post


Link to post
Share on other sites

Yes this will help me "edit" the text I retrieve, but how can I actually retrieve it from the html source?

Share this post


Link to post
Share on other sites

IEBodyReadHTML() then StringRegExp?

but the Body part is very long.

Edited by Dieuz

Share this post


Link to post
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
Sign in to follow this  

×
×
  • Create New...