fork(1) download
  1. import re
  2. random_string = "uh\n haha - yes 'nope' \t tuben\xa01337"
  3. random_string = re.sub(r"\s+", " ", random_string).strip().replace('"', '').replace("'", '')
  4. print(random_string)
  5.  
Success #stdin #stdout 0.04s 9456KB
stdin
Standard input is empty
stdout
uh haha - yes nope tuben 1337