Try this:
import re
s = "[AA BB, CC, DD, EE] [PP QQ, RR] [WW XX, YY, ZZ]"
response = re.findall('(?<![[\w])\w+', s)
5
solved Remove every word of after a bracket and append remaining words to Python list
Try this:
import re
s = "[AA BB, CC, DD, EE] [PP QQ, RR] [WW XX, YY, ZZ]"
response = re.findall('(?<![[\w])\w+', s)
5
solved Remove every word of after a bracket and append remaining words to Python list