Jump to content
Sign in to follow this  
Potrus

Easy question

Recommended Posts

Potrus

I have got a problem, let's say i have text and i have words in "xxxx" whats the command to copy only the text in "" ,

it looks like this:

1360481,"xxxxxx"
1360482,"yyyyyyyy"
1360483,"wwwwwww"
1360484,"zzzzz"
1360485,"qqqqqqq"
1360486,"uuuuuuuu"

Share this post


Link to post
Share on other sites
Potrus

Sorry, but i've just started programming in AutoIt. Could u show me how should it looks?

Share this post


Link to post
Share on other sites
Valuater

; File name - location
$File = "C:\temp_Folder\test.txt"

; read a line in the file
$Info = FileReadLine($File, 1)

; ************** for testing only
$Info = '1360481,"xxxxxx"'

; split the string by the comma
$Split = StringSplit($Info, ",")

; remove the quote marks
$Result = StringReplace($Split[2],'"', '')

MsgBox(0x0,"Info", $Result)

remove the line under "************** for testing only" to use the file line you read

8)


NEWHeader1.png

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.