Community Patterns

Community Library Entry

1

Regular Expression
Created·2016-10-17 06:54
Flavor·ECMAScript (JavaScript)

/
(?:\s*(?=\w+\.|.*as\s+|distinct\s+|)(\*|\w+)(?=\s*(?=,|from)))
/
ig
Open regex in editor

Description

Tries to find the column names from the given SQL query.

Submitted by anonymous