Skip to content

Instantly share code, notes, and snippets.

@leighghunt
Created March 14, 2014 04:24
Show Gist options
  • Save leighghunt/9542123 to your computer and use it in GitHub Desktop.
Save leighghunt/9542123 to your computer and use it in GitHub Desktop.
Strip out ignored differences between DB scripts
Find:
Script Date: 03/14/2014 \d{2}:\d{2}:\d{2}
Replace:
<empty string>
Find:
USE \[\b(_\w+|[\w-[0-9_]]\w*)\b\]
Replace with:
USE [<DB NAME>]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment