Sign in to follow this  
Followers 0
Romm

Need help with searching html file.

4 posts in this topic

#1 ·  Posted (edited)

Ok for example i have html file with code.

Test = 123

Test = 1234

Test = 2345

Test = 234

I need to find values 123, 1234, 2345, 234, copy them and insert into .txt file like this:

123

1234

2345

234

I know how to search 1 value. But cant understand how to search all 4. Something like...find 1st value, copy it, delete, then find 2nd value...etc.

And there is also problem searching different length values.

Thanks for help.

Edited by Romm

Share this post


Link to post
Share on other sites



$sttc = _StringBetween('121', '1', '1')

_ArrayDisplay($sttc, 'Default Search')

Is it?

Share this post


Link to post
Share on other sites

_ArrayDisplay provides information in Auto IT window. How can i copy it into file?

InetGet ( "http://www.example.com", @TempDir & "\test.htm", 1)
$chars = FileRead(@TempDir & "\test.htm")

Share this post


Link to post
Share on other sites

You can use FileReadLine in a loop and just parse each line separately. Just use stringtrimleft to take off the unneeded characters from the left side of the string.


[font="Verdana"] [size="2"]"[/size][/font]Failure is not an option -- it comes packaged with Windows"[font="Verdana"][size="2"] Gecko Web Browser[/size][/font][font="Verdana"][size="2"], [/size][/font][font="Verdana"][size="2"]Yahtzee![/size][/font][font="Verdana"][size="2"], Toolbar Launcher (like RocketDock)[/size][/font][font="Verdana"][size="2"]Internet Blocker, Simple Calculator, Local Weather, Easy GDI+ GUI [/size][/font][font="Verdana"][size="2"]Triangle Solver, TCP File Transfer, [/size][/font][font="Verdana"][size="2"]Valuater's Autoit Wrappers[/size][/font][font="Verdana"][size="3"][size="2"][size="2"]OOP In AutoIt[/size][/size][/size][/font][font="Verdana"][size="2"][size="1"]Using Windows XP SP3, 1GB RAM, AMD Athlon Processor @ 2.1 GHzCheck me out at gadgets.freehostrocket.com[/size][/size][/font]

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  
Followers 0