fork download
Scanner s=new Scanner(System.in)
def x=s.nextLine()
def n=s.nextInt()
x=x.replaceAll(/\d+/,{it->it.toInteger()*n})
println x
Success #stdin #stdout 1.24s 389184KB
stdin
This 1 is22a 3352sentence 50
3
stdout
This 3 is66a 10056sentence 150