in reply to Re^2: split string and always get last wordin thread split string and always get last word
my $string = "/alex/samsung/t2"; $string =~ m/([^\/]+)$/; print $1, "\n"; [download]