(Without including any external libraries.)
What\'s the most efficient way to remove the extension of a filename in Java, without assuming anything of the f
filename.replace("$(.+)\.\\w+", "\1");