human
Capturing emoticons using regular expression in python
assistant
Here is some code to match the pattern '[:;][)(](?![)(])' to the string `str`

re.match('[:;][)(](?![)(])', str)

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