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
In reply to Re^5: need to parse firts part of SQL-query (regex question)
by grinder
in thread need to parse firts part of SQL-query (regex question)
by jeanluca
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |