I'm trying to split a string by the following array of characters:

```
"!", "%", "$", "@"

```

I thought about using regex, so I developed the following method which I thought would split the string by the characters:

```
var splitted = string.split(/\!|%|\$|@*/);

```

However, when I run the following code, the output is split by every character, not what I was hoping for:

```
var toSplit = "abc%123!def$456@ghi";
var splittedArray = toSplit.split(/\!|%|\$|@*/);

```

How could I make it so that `splittedArray` contains the following elements?

```
"abc", "123", "def", "456", "ghi"

```

Any help appreciated.