Jump to content

how to split string using autoit?


Recommended Posts

Hello!

This is really easy using "StringSplit" function!

Example:

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

; 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

After switching years ago to Linux, sadly I don't use AutoIt anymore.

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...