Re: [Gambas-user] traslate grep expresion to detect COMMENT in line sql

2017-07-28 Thread PICCORO McKAY Lenz
umm RegExp.Replace are only since 3.5 .. searching for alternatives, due i have for now Debian wheeze and the gamgas (with supoport by vendor) are 3.1 any ideas? Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2017-07-28 13:51 GMT-04:00 Fernando Cabral : > 2017-07-28 12:50 GMT-03:

Re: [Gambas-user] traslate grep expresion to detect COMMENT in line sql

2017-07-28 Thread Fernando Cabral
2017-07-28 12:50 GMT-03:00 PICCORO McKAY Lenz : > wow! i must made a string search procedure until "comment" was find.. ! > > i think that but i also think that a reg expresion must be better with pcre > component! > My suggestion it to be used with pcre componte. I only gave you the search and r

Re: [Gambas-user] traslate grep expresion to detect COMMENT in line sql

2017-07-28 Thread PICCORO McKAY Lenz
wow! i must made a string search procedure until "comment" was find.. ! i think that but i also think that a reg expresion must be better with pcre component! Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2017-07-28 11:34 GMT-04:00 Fernando Cabral : > 2017-07-28 11:57 GMT-03:00

Re: [Gambas-user] traslate grep expresion to detect COMMENT in line sql

2017-07-28 Thread Fernando Cabral
2017-07-28 11:57 GMT-03:00 PICCORO McKAY Lenz : > > my target objetive it parse a text/line like this: > > fiel1 TEXT COMMENT "coment fiel1" , field2 TEXT, fiel3 TEXT > fiel4 NUMBER(10,2), fiel5 TEXT COMMENT "pepepeep", > fiel6 TEXT > > into this: > > fiel1 TEXT /* coment fiel1*/ , field2 TEXT

[Gambas-user] traslate grep expresion to detect COMMENT in line sql

2017-07-28 Thread PICCORO McKAY Lenz
i have a sql file that hava also lines like : COMMENT " " , field f2 \n in console with this grep/sed can sustituye multilines or single lines sed -ne '/comment/{:;/\o47;\s*$/!{N;b};s/\n\s*/ /;p}' http://qgqlochekone.blogspot.com -