Regex myRegex = new Regex("(?<UpperLetters>[A-Z]+(\\[\\d+\\])?)");
String s = @"log(GHF+JCX*0.5+(EDF+5)*TRJ[3])";MatchCollection mc = myRegex.Matches(s);if ( mc.Count > 0 ) {
string[] mArray = new string[mc.Count];
    for(int i=0;i<mc.Count;i++) {
         mArray[i]= mc[i].Groups["UpperLetters"].Value;
        Response.Write(mArray[i]);
    }
}