Skip to content

Instantly share code, notes, and snippets.

@tnhu
Created January 12, 2017 00:48
Show Gist options
  • Save tnhu/4569211a3f1c6758ba22e7281aa739b3 to your computer and use it in GitHub Desktop.
Save tnhu/4569211a3f1c6758ba22e7281aa739b3 to your computer and use it in GitHub Desktop.
Sublime regular expression search & replace
Find what: (^.*): (.*$)
Replace with: "$1": "$2",
--
Before:
memberOf: CN=Realtime Systems,OU=DEPT,OU=Groups,DC=corp,DC=qc
department: Inventory & DMP
After:
"memberOf": "CN=Realtime Systems,OU=DEPT,OU=Groups,DC=corp,DC=qc",
"department": "Inventory & DMP",
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment