human
Capturing emoticons using regular expression in python
assistant
Here is some code to fetch smilies matching regex pattern '(?::|;|=)(?:-)?(?:\\)|\\(|D|P)' in string `s`

re.findall('(?::|;|=)(?:-)?(?:\\)|\\(|D|P)', s)

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