in reply to Re: Scanning a file for a match, printing different part of the line when found.
in thread Scanning a file for a match, printing different part of the line when found.

Since OP wasn't specific about how "Name" is constructed, ++

But note that this will not satisfy the op by printing the (whole) name field, if "Name" is comprised of more than one word (for example: Firstname MI Lastname), because of the \b

  • Comment on Re^2: Scanning a file for a match, printing different part of the line when found.
  • Download Code