http://qs321.pair.com?node_id=662929


in reply to Re^4: need to parse firts part of SQL-query (regex question)
in thread need to parse firts part of SQL-query (regex question)

fear that it wouldn't be very robust

Yes indeed. Real-world SQL is likely to have named the columns, so you have to deal with concat(f4, f5, f6) as "foobarquux (combined)". Before you know it, you have reimplemented SQL::Tokenizer!

• another intruder with the mooring in the heart of the Perl