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;
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");
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
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...