Hi,
The TString class has a nice feature which is the detection
of a regular expression within a string:
Bool_t Contains(const TRegexp& pat) const
Once a regexp has been detected is it possible to store this
expression to a variable?
For example for the two strings:
TString str1 = "_15GeV_"
TString str2 = "_30GeV_"
the following results will be true:
str1.Contains("_[0-9][0-9]_GeV")
str2.Contains("_[0-9][0-9]_GeV")
Can someone finds out which string is actually matched?
Thanks!
Stelios.
This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:09 MET