So I have a textarea with content, only numbers and | (separators). Example :

```
<textarea>32|11|5|54|</textarea>

```

What I'd like is to append the textarea content, delete only the separators (the |) and keep the numbers, in their order. Get that kind of array :

```
var myArray = [22,9,54,37];

```

*Note that I'm only allowed to basic JS*

---

I know how to get the textarea content in a string, but I don't see how can I push() all the elements in an array, without breaking the numbers (ie having 2,2,9,5,4,3,7 instead of 22,9,54,37) AND deleting the separators. If needed I can change the separator, that's not a problem.

Pre-thanks.