[ROOT] Re: wildcards

From: Rene Brun (Rene.Brun@cern.ch)
Date: Fri Jul 18 2003 - 15:13:58 MEST


Hi Swagato,

The following constructs are accepted by the regular expression processor:

   '^'             // start-of-line anchor 
   '$'             // end-of-line anchor 
   '.'             // matches any character 
   '['             // start a character class 
   ']'             // end a character class 
   '^'             // negates character class if 1st character 
   '*'             // Kleene closure (matches 0 or more) 
   '+'             // Positive closure (1 or more) 
   '?'             // Optional closure (0 or 1) 

   Standard classes like [:alnum:], [:alpha:], etc. are not supported, 
only [a-zA-Z], [^ntf] and so on. 

Rene Brun

Swagato Banerjee wrote:
> 
> Hi:
> I like to chain file-1.root through file-9.out using:
> 
>     TChain* chain = new TChain("ntp1");
>     chain->Add("file-[1-9].root");
> 
> It doesnt seem to work. Is there someway to make this work?
> 
> -thanks,
> Swagato



This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:13 MET