in reply to dir match, dir may or may not appear
Thanks... what you gave worked:
$path =~ m|^usr/(?:/[^/]+)?/bin/|
In Section
Seekers of Perl Wisdom
in reply to dir match, dir may or may not appear
$path =~ m|^usr/(?:/[^/]+)?/bin/|