Now that's compact. What's it's antimatter twin -- grab everything but the extension? And yeah, I'm ambivalent about the idea of limiting the length of the extensions I want to consider 'real', it's negotiable as circumstances unfold.You might be looking for ${filename:e}. It does not differentiate between short vs long extensions, but you probably shouldn't either.