I am not that hot at regular expressions and it has made my little mind melt some what.
I am trying to find all the tables names in a query. So say I have the query
RegEx isn't very good at this, as it's a lot more complicated than it appears:
I could go on.
What you can do is look for an sql parser, and run your query through that.