/usr/bin /usr/local/bin /usr/*anydir*/bin *anydir* may or may not appear? my regexp: $path =~ m|^/usr/(/[^/]+{0,1})/bin/| reports syntax error.