Test, validate and match regular expressions
This regex is designed to extract single-quoted strings, such as SQL statements, from SQL Profiler trace logs. The first part captures content enclosed in single quotes, while the second part matches and skips any other text up to a newline. It is useful for parsing log files to isolate queries or commands. The global flag allows it to find all matches across the text.