$ perl -le ' > $s = q{xyzUS}; > if ( $s =~ m{/(.*?)} ) > { > print qq{Found $1}; > } > else > { > print q{No match}; > }' Found xyz $