Help for this page

Select Code to Download


  1. or download this
    my $last_one = ( split, /\\\\/, $string )[ -1 ]
    
  2. or download this
    my $last_one = ( $string =~ /([^\\](?!.*\\).*)$/ )[ 0 ];