Thanks for your advice which has raised a point and a question in my mind. Point: The tags are on the inner most left side of the text file. I need $d and $key to be an exact numeric match. Question: Does the
not cover this in every circumstance? Point: I tried to do a numeric match but the $key is treated as a string.