Hi Stanislav, thanks for these remarks. In the GUI the following works and solves Christian's problem: const char *filetypes[] = { "All files", "*", "Text files", "*.[tT][xX][tT]", 0, 0 }; Cheers, Fons. On Mon, 2003-05-26 at 22:45, Stanislav Nesterov wrote: > Hi, > I just want to clarify one point: > expression "*.{txt,TXT}" in fact is not regexp at all but shell wildcard. > > To be more precise similar condition can be achieved via regex: > .*\.(txt|TXT) > or even > .*\.[tT][xX][tT] > > Best regards, > Stanislav. > > On 26 May 2003, Fons Rademakers wrote: > > > Hi Christian, > > > > this is currently not supported via our regexp processor. Ideally this > > should work "*.{txt,TXT}" but currently it doesn't. > > > > Cheers, Fons. > > > > > > > > On Sun, 2003-05-25 at 19:13, cstrato wrote: > > > Dear Rooters > > > > > > TGFileDialog offers the possibility to show only files > > > of selected type TGFileInfo::fFileTypes. > > > > > > However, I would like to display e.g. text-files only, > > > which could have the extension *.txt or *.TXT. > > > Is this possible, and how can I achieve this? > > > > > > Thank you in advance. > > > Best regards > > > Christian > > > _._._._._._._._._._._._._._._._ > > > C.h.i.s.t.i.a.n S.t.r.a.t.o.w.a > > > V.i.e.n.n.a A.u.s.t.r.i.a > > > _._._._._._._._._._._._._._._._ > > -- Org: CERN, European Laboratory for Particle Physics. Mail: 1211 Geneve 23, Switzerland E-Mail: Fons.Rademakers@cern.ch Phone: +41 22 7679248 WWW: http://root.cern.ch/~rdm/ Fax: +41 22 7679480
This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:11 MET