fork(14) download
  1. class Ideone {
  2. static void main(String[] args) {
  3. String FILENAME = 'Application-2.0.2-bug/TEST-1.0.0.zip'
  4. println(FILENAME.replaceAll("-[^-/]+/", "-"))
  5. }
  6. }
  7.  
Success #stdin #stdout 1.68s 122952KB
stdin
Standard input is empty
stdout
Application-2.0.2-TEST-1.0.0.zip