44   TPRegexp r1(
"\\bpeper(\\w+)koek\\b");
 
   48   cout << 
s1(r1) << endl;
 
   52   r1.Substitute(
s1,
"wal$1boom");
 
   68   TString s3(
"on 09/24/1959 the world stood still");
 
   83   TString s4(
"http://fink.sourceforge.net:8080/index/readme.html");
 
   89     cout << 
"protocol: " << 
proto << 
"  port: " << port << endl;
 
  110   TString s5(
"fons.rademakers@cern.ch");
 
  111   TPRegexp r5(
"^([\\w-\\.]+)@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.)|(([\\w-]+\\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\\]?)$");
 
  112   cout << 
"Check if the email address \"" << s5 << 
"\" is valid: " << (r5.MatchB(s5) ? 
"TRUE" : 
"FALSE") << endl;
 
  119   TString s6(
"neutron proton electron neutron");
 
TObject * At(Int_t idx) const override
 
Int_t GetLast() const override
Return index of last object in array.
 
Collectable string class.
 
TObjArray * MatchS(const TString &s, const TString &mods="", Int_t start=0, Int_t nMaxMatch=10)
Returns a TObjArray of matched substrings as TObjString's.
 
Int_t Substitute(TString &s, const TString &replace, const TString &mods="", Int_t start=0, Int_t nMatchMax=10)
Substitute replaces the string s by a new string in which matching patterns are replaced by the repla...