Help for this page

Select Code to Download


  1. or download this
    m{/([^/]*?)/([^/]*?)/([^/]*?)\.([a-z0-9]+?)$}
    
  2. or download this
    my @parts = (split m{/}, '/x/y/z/a/b/c/d/e.f');
    splice @parts, 0, -3;
    push @parts, split /\./, pop @parts;
    print "<$_>" for @parts;