currently I have the following code:
String select = qry.substring("select ".length(),qry2.indexOf(" from "));
String[] attrs = select.split(",");
which works for the most parts but fails if given the following:
qry = "select a,b,c,DATETOSTRING(date_attr_name,'mm/dd/yyyy') from tbl_a";
what I'm looking for is the regex to feed to String.split() which will hande that situation, and for that matter any other special cases you might be able to think of that I'm missing.