in reply to Re^4: Matching part of a line and saving it into a variable
in thread Matching part of a line and saving it into a variable

Good points. 3/4 of them were due to me copying the OP's code with barely a glance.
  • Comment on Re^5: Matching part of a line and saving it into a variable