From: Simon Krahnke Date: 2007-08-15T00:05:00+09:00 Subject: Re: Exchanging the extension in a filename * Ronald Fischer (12:05) schrieb: > filename.sub(/java$/,'class') I'd match the point too, not everything that ends with "java" is java source file: filename.sub(/\.java$/, '.class') > This works fine, but I wonder whether there isn't a more > elegant way to do it. What is unelegant about that? mfg, simon .... l