human
getting string between 2 characters in python
assistant
Here is some code to get all characters between two `$` characters in string `string`

re.findall('\\$([^$]*)\\$', string)

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.