I\'ve a text file containing large number of queries. I want to get all the distinct tables used in the entire file in all the queries. The table name can come after a \'fro
Something like this maybe:
/(from|join)\s+(\w*\.)*(?\w+)/
It won't match escaped table names though, and you need to make the regex evaluation case-insensitive.