Regular find can’t show you negative searches. That’s searches where letters don’t exist. So here I’m going to show you how to find PRINT statements that aren’t commented out. This can be useful if you’ve got a big stored procedure that’s returning a PRINT statement that you don’t want. This way you can easily find only those uncommented PRINT statements instead of having to look through all of them. I use a regex lookbehind for this and thoroughly explain how to use a lookbehind for this type of negative search.
REGEX: Use Lookbehind for PRINT Statements
