Test, validate and match regular expressions
Matches SQL Server T-SQL scripts that conditionally add default constraints via the IF NOT EXISTS check against sys.objects (type = 'D'). Captures schema name, constraint name, table name, default value expression, and target column name from SSMS-generated ALTER TABLE statements. Useful for parsing migration files, extracting default constraint metadata, or analyzing generated DDL scripts.