Hi,
I have a file with a bunch of SQL statements in them along with comments, and some code. All (guaranteed) of the sql statements have
SELECT .... FROM
Therefore - I wanted to extract them out with a regular expression. I wrote 30+ lines of code using strpos and substr - but it's so messy
Can somebody help me with the correct regex that can extract out all occurances of 'SELECT ... FROM' where, of course the dots or periods can be any number of characters or words
Thanks,
Vmusic