W
William Morris
I'm trying to work out a reg.exp. that will pick out a sql statement against
a certain set of tables - in this case any table named "Survey~something~",
but I only want to pull back those statements where the CompanyID column
doesn't appear in the query. (The expression is being used in my editor so
it might appear a little strange, but by and large it works the same as
you'd expect.)
[^']select(.){0,100}from(.){0,100}Survey(.){0,25}where(.){0,200}
What do I need to add so that I get those without a companyid column?
Something like...
[^']select(.){0,100}from(.){0,100}Survey(.){0,25}where(.){0,200}(^companyid)
(tried this one, but it doesn't work)
Thanks!
- Wm
a certain set of tables - in this case any table named "Survey~something~",
but I only want to pull back those statements where the CompanyID column
doesn't appear in the query. (The expression is being used in my editor so
it might appear a little strange, but by and large it works the same as
you'd expect.)
[^']select(.){0,100}from(.){0,100}Survey(.){0,25}where(.){0,200}
What do I need to add so that I get those without a companyid column?
Something like...
[^']select(.){0,100}from(.){0,100}Survey(.){0,25}where(.){0,200}(^companyid)
(tried this one, but it doesn't work)
Thanks!
- Wm