How do you know that the regex has matched? If $dir doesn't end in a slash, the match will fail and will not set $1.
the lowliest monk
In reply to Re: $1 not getting applied to reg ex
by tlm
in thread $1 not getting applied to reg ex
by drum1981
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |