help needed with string manipulation
Posted on 2006-06-22
I was wondering if you could show me how to do the following.
I have a string which is a series of variable = value pairs. Each set is separated by a semi colnn. Some of the values can themselves be a comma separated list.
I need to split this input. I would ideally like the result to be in a hashtable or soemthing where the key is the variable name. In the case of the roles variable, i would like the different roles to be stored in an arraylist. Could i store an array list as the value in a hashtable?
In this example, the hastable would contain the following:
roles arraylist = (admin,superuser)
How would i go about doing this? I am awful with string manipulation in vb.net
Thanks very much