Skip to content

Instantly share code, notes, and snippets.

@renankof
Created July 10, 2020 00:19
Show Gist options
  • Save renankof/7f0984e151edb1976e568bf28a83375f to your computer and use it in GitHub Desktop.
Save renankof/7f0984e151edb1976e568bf28a83375f to your computer and use it in GitHub Desktop.
Fix whitespace in unicode...; Python
line = re.sub(r'[^\x00-\x7F]+',' ', l, flags=re.UNICODE)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment