Using hadd with regular expressions

Is it possible to use hadd with regular expressions for file names? Is there some documentation about this, and hadd in general, somewhere? Also, where is the code for hadd?

[quote=“Andrew1”]Is it possible to use hadd with regular expressions for file
names?[/quote]
AFAIK hadd has only a few switches (see hadd -h) and apart from that takes an output file name and a list of input files. If you say

$ hadd out.root in*.root

in*.root is expanded by your shell, not by hadd. You can build the input file list any way you want, e.g. with shell glob patterns like above or by reading from an external file (assuming some POSIX shell)

$ hadd out.root `cat file_list.txt`

root.cern.ch/viewvc/tags/v5-34-0 … iew=markup