Jump to content
Sign in to follow this  
sshrum

StringSplit(), not working when dealing with a multichar split item

Recommended Posts

sshrum

I'm trying to split a string like:

'Calloway, Cab'

At the ', ' (that's comma+space)

So I'm doing this:

$aTemp = StringSplit($sArtist, ", ")

I figured I'd get back a 2 element array with

$aTemp[1] = 'Calloway'

$aTemp[2] = 'Cab'

But instead I get:

$aTemp[1] = 'Calloway'

$aTemp[2] = ''

$aTemp[2] = 'Cab'

Seems like a bug to me. Am I wrong?


Sean Shrum :: http://www.shrum.net

All my published AU3-based apps and utilities

'Make it idiot-proof, and someone will make a better idiot'

 

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  

×