📅  最后修改于: 2022-03-11 14:58:27.752000             🧑  作者: Mango
# example of expression giving none
re.split(r'(\+)|(\-)|(\*)', text)
# you are getting null because it matches all the groups
# every time it finds a match.
# so just remove the paranthsis after this |
# correct for not getting null
re.split(r'\+|\-|\8', text)