in reply to regular expressions. help

Let me see if I understand what you want-- if the line begins with "HISTOGRAM OF" you want to print the words "in loop"? Why would you need anything more than this for the match:

 if (/^HISTOGRAM OF/){...etc}?

As to what you're doing with it, you could get at the gpa value by splitting the data on the white space and/or the asterisk. I'm not sure what you're after, but you could make an array of the gpa values that way and use them.

That's how I'd start anyway. Hope this is helpful. Good luck.