I am trying to get the value between dollar sign in a string and put them in a list.

For example, here is a string:

```
var a ='Dear $name$, This is my number $number$. This is my address $address$ Thank you!'

```

and what I want to get is,

```
var b = '$name$,$number$,$address$'

```

Do I have to take care about the '$' in the string due to $ is also used in jQuery? Do you have any idea about it?