human
getting string between 2 characters in python
assistant
Here is some code to getting the string between 2 '$' characters in '$sin (x)$ is an function of x'

re.findall('\\$(.*?)\\$', '$sin (x)$ is an function of x')

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