Regular Expressions 101

Community Patterns

Capture Comments on SQL followed by SELECT

1

Regular Expression
Python

r"
(?i)(((--.*)|(((/\*)+?[\w\W]+?(\*/)+)))\s+(select))|^(\w*)\s*(select)
"

Description

Shag Maister is the best

Submitted by anonymous - 8 years ago