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