Community Patterns

Community Library Entry

1

Regular Expression
Created·2016-04-18 16:34
Flavor·PCRE (Legacy)

/
(?:(?:from|join)(?:\s|\()+((?:\w*\.\w*)+)(?:\s|\))+)
/
gi
Open regex in editor

Description

this extracts the table name in the from or join clause from SQL query

Submitted by vwei02