in reply to Re^2: Splitting an url in its components
in thread Splitting an url in its components
s{\.(?:tar\.gz|[^.]+)\z}{};
The problem is that, in general, you can't know from a file name which part of it is "extension" and which part is not, unless you either have a clear-cut definition of what "extension" means (I don't know any that satisfies your requirement), or you have a list of all possible extensions.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Splitting an url in its components
by baurel (Sexton) on Jul 17, 2008 at 15:42 UTC | |
by moritz (Cardinal) on Jul 17, 2008 at 15:48 UTC | |
by Anonymous Monk on Jul 18, 2008 at 04:44 UTC |