Jump to content
Sign in to follow this  
YoseMite

Search to specific information

Recommended Posts

YoseMite

Hi,

I would like to write a system that receives some *.html information and view specific information

Example:

I download the following file:

<html>
<head></head>
<body>
<hr>
<b>This is important information</b>
</body>
</html>

Now I use the AutoIT function to read this information, I would like to use the text:

"This is important information"

How can I search between

<b></b>
?

If there are more <b></b> tags I would also use them.

Thanks!

Greetings,

YoseMite

Edited by YoseMite

Share this post


Link to post
Share on other sites
/dev/null

#include "array.au3"

$html = "<html> <b>This is important information</b>  something....  <b>This is NOT important information</b> </html>"

$matches = StringRegExp($html,"(?U)<b>(.*)</b>",3)
_ArrayDisplay($matches)

Cheers

Kurt


__________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf *

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  

×