Jump to content

Seperating words in string


Recommended Posts

Hi,

I need some help seperating words in a string into seperate variables. Currently my script reads from a gui, and pulls out a date in this format xx/xx/xxxx. what i would like to do is seperate each number between the /. How would i go about this?

Thanks!

Link to comment
Share on other sites

hi there,

include <array.au3>

$string = "xx/xx/xxxx"

$array = StringSplit ($string, "/")

_arraydisplay ($array, "date separated")

cheers

Old Scriptology

Visual Ping 1.8 - Mass Ping Program with export to txt delimited.

Desktop 2 RGB and YMCK - Pick a color in the desktop and get the RGB and YMCK code.

Desktop 2 RGB - Pick a color in the desktop and get the RGB code.

ShootIT 1.0 - Screen Capture full and partial screen

[font="'Arial Black';"]Remember Remember The Fifth of November.[/font]

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...