<p>How do you split a string?</p>

<p>Lets say i have a string "dog, cat, mouse,bird"</p>

<p>My actual goal is to insert each of those animals into a listBox, so they would become items in a list box.</p>

<p>but i think i get the idea on how to insert those items if i know how to split the string. or does anyone know a better way to do this?</p>

<p>im using asp c#</p>

```
```
string[] tokens = text.Split(',');

    for (int i = 0; i < tokens.Length; i++)
    {
          yourListBox.Add(new ListItem(token[i], token[i]));
    }
```
```