This is a great video to show you how to think in a way that gets you a good regex. Here I’ve got SQL restore statements that need to be kept while others need to be deleted. I’m going to show you how to use regex to keep only the restore statement for the most recent backup.
The regex itself is simple, but I walk you through every step of the way.
↧
Regex: Removing Restore Statement Dupes
↧