styles3000 Posted June 30, 2009 Posted June 30, 2009 I have a txt file that i need certain info extracted from it and paste into another txt file. I've attached the file . In the file therein contain "Top Searches in the last 7 days", "Category:" , "Location:" and keywords . They looks like this below. Top Searches in the last 7 days Category: Telecommunications Location: United States verizon iphone blackberry att verizon wireless at&t twitter sprint tmobile comcast The info I'm looking to extract the ............ verizon iphone blackberry att verizon wireless at&t twitter sprint tmobile comcast I'll be using this function on many documents. Be mindful that I'm looking for a function that when ever it sees ...... Top Searches in the last 7 days Category: Location: United States Any keywords after "Location:United States " and before "View full report" get extracted and placed in the a txt file of my choice. Could some one help me out ?iGoogle.txt
dantay9 Posted June 30, 2009 Posted June 30, 2009 _StringBetween is what you need. Also look at fileread if you haven't already.
styles3000 Posted June 30, 2009 Author Posted June 30, 2009 _StringBetween is what you need. Also look at fileread if you haven't already. You say I need these two functions? #Include <string.au3> _StringBetween($sString, $sStart, $sEnd[, $vCase = -1[, $iSRE = -1]]) FileRead ( filehandle or "filename" [, count] ) How can I bring them together in order to do the work I need to be done? Should I code it like this? ]#Include <string.au3> _StringBetween(;Right here the strings are all different. , "Location: United States", "View full report")
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