Undutchable Posted September 20, 2008 Share Posted September 20, 2008 Hi guys Can anyone post an example of how to do this? $StringX = '{"aaa","bbb","ccc","ddd"}' How do I fill an array with the strings inside the double quotes of $StringX. Like this: $arrayX[1] = "aaa" $arrayX[2] = "bbb" $arrayX[3] = "ccc" . .and so on The pattern seem to be the double quotes.. all characters enclosed in the double quotes.. but how?? >_< Thanks. Link to comment Share on other sites More sharing options...
Andreik Posted September 20, 2008 Share Posted September 20, 2008 Hi guys Can anyone post an example of how to do this? $StringX = '{"aaa","bbb","ccc","ddd"}' How do I fill an array with the strings inside the double quotes of $StringX. Like this: $arrayX[1] = "aaa" $arrayX[2] = "bbb" $arrayX[3] = "ccc" . .and so on The pattern seem to be the double quotes.. all characters enclosed in the double quotes.. but how?? >_< Thanks.Try this: #Include <String.au3> $StringX = '{"aaa","bbb","ccc","ddd"}' $ArrayX = _StringBetween($StringX,'"','"') When the words fail... music speaks. Link to comment Share on other sites More sharing options...
Undutchable Posted September 20, 2008 Author Share Posted September 20, 2008 man, i feel like a newbie... Thanks Andreik Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now