in reply to $1 don't reset (non loop)

Why doesn't $1 reset when the regexp doesn't match anything?
Just because it was designed that way. $1 will only be set on a succesful match, and hence remain what it is on a failed match.

Abigail