in reply to Re: regexp question
in thread regexp question
my $path =~ /^\Q$string\E # the base string; '\tmp\foo', e.g.
(\\.*)? # optionally match a slash, etc.
$ # match end of string
/x;
|
|---|