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.