fork download
  1. import re
  2.  
  3. s = "123+123"
  4. s = re.compile("(?<=\d)([+])(?=\d)").split(s)
  5. print(s)
Success #stdin #stdout 0.02s 27696KB
stdin
Standard input is empty
stdout
['123', '+', '123']