human
Matching multiple regex patterns with the alternation operator?
assistant
Here is some code to match regex '\\((.*?)\\)|(\\w)' with string '(zyx)bc'

re.findall('\\((.*?)\\)|(\\w)', '(zyx)bc')

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