Dieuz Posted December 16, 2007 Share Posted December 16, 2007 (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>…</p>I just wannna display: This is your number: 1234 8213 3213 4342Thx alot << Edited December 16, 2007 by Dieuz Link to comment Share on other sites More sharing options...
Nahuel Posted December 16, 2007 Share Posted December 16, 2007 StringRegExp() is what you need. Here's an example: $Html="<strong>This is your number</strong>: <code>1234 8213 3213 4342</code>…</p>" $Info=StringRegExp($Html,"<strong>This is your number</strong>: <code>(.*?)</code>…</p>",1) MsgBox(0,"",$Info[0]) Link to comment Share on other sites More sharing options...
Dieuz Posted December 16, 2007 Author Share Posted December 16, 2007 Yes this will help me "edit" the text I retrieve, but how can I actually retrieve it from the html source? Link to comment Share on other sites More sharing options...
Nahuel Posted December 16, 2007 Share Posted December 16, 2007 _IEBodyReadHTML()? Link to comment Share on other sites More sharing options...
Dieuz Posted December 16, 2007 Author Share Posted December 16, 2007 (edited) IEBodyReadHTML() then StringRegExp? but the Body part is very long. Edited December 16, 2007 by Dieuz Link to comment Share on other sites More sharing options...
Nahuel Posted December 16, 2007 Share Posted December 16, 2007 yes, it doesn't matter. Link to comment Share on other sites More sharing options...
Dieuz Posted December 16, 2007 Author Share Posted December 16, 2007 kk Thanks you Nahuel! Check your message ;-) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now