* Ronald Fischer <ronald.fischer / venyon.com> (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