Skip to content

Instantly share code, notes, and snippets.

@lascar-pacagi
Created January 17, 2020 08:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lascar-pacagi/0a3e184568256c45d19b040c6912fd44 to your computer and use it in GitHub Desktop.
Save lascar-pacagi/0a3e184568256c45d19b040c6912fd44 to your computer and use it in GitHub Desktop.
import sys
import re
s = sys.argv[1]
s = re.sub('⟮', '(', s)
s = re.sub('⟯', ')', s)
s = re.sub('│', '|', s)
s = re.sub('⭑', '*', s)
s = re.sub('⁺', '+', s)
s = re.sub('?', '?', s)
s = re.sub('ε', 'ϵ', s)
print(s)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment