fork download
  1. import re
  2.  
  3. regex = r"(?<=\w)-\r?\n(?=\w)"
  4. my_string = """this good pe-
  5. riod has"""
  6.  
  7. print (re.sub(regex, "", my_string))
Success #stdin #stdout 0.02s 9340KB
stdin
Standard input is empty
stdout
this good period has