↻
⏵︎ Run
import re pattern = '-+' string = '2344------HELLO--WORLD' result = re.split(pattern, string) print(result)
Output