Say I have something like this:
new File(\"test\").eachFile() { file-> println file.getName() }
This prints the full filename of eve
Simplest way is:
'file.name.with.dots.tgz' - ~/\.\w+$/
Result is:
file.name.with.dots