RE: REGEX for query

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



[snip]
Assuming unix, I'd do the following from the root of the application to
get a list
of files that contain queries:

$ egrep "=[:space:]*\".*\b(SELECT|INSERT|UPDATE)\b" * -ril
...

Anyway, that's how I'd do it.  Hope you got something out of this... :)
[/snip]

That is a good start, now all I need to do is get the whole query(s)

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux