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
In reply to Re: $1 don't reset (non loop)
by Abigail-II
in thread $1 don't reset (non loop)
by jockel
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |