REGEX: Use Lookbehind for PRINT Statements

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.

Rate this video

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading...