Jump to content

how to split string using autoit?

Recommended Posts


i will have one input, in this input i will write a string with some delimiters like hello@this@isanexample

but i'm not sure how to separate them ?

Edited by SoyArcano

Share this post

Link to post
Share on other sites


This is really easy using "StringSplit" function!


$text = "abc 123@test@test abc"
$split = StringSplit($text,"@")
For $i = 1 to $split[0]
   Consolewrite("$split["&$i&"] = "&$split[$i]&@CRLF)

; I will kill Android keyboard... It doesn't want to write spaces and other stuff...

$split is an array, $split[0] says how many strings are in this array.

Edited by algiuxas


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


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.