Created
September 26, 2018 06:26
-
-
Save arumoy/e20ab6670cd14044458af3399f0740ad to your computer and use it in GitHub Desktop.
pyperclip snippet to mod clipboard text - make script shortcut and invoke
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pyperclip, re | |
text = pyperclip.paste() | |
text = re.sub(r"(\{|\})",r"\\\1",text) | |
pyperclip.copy(text) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment