title: Groovy flexible way of replaceAll method
body: <p>I am new to groovy and thats why I can't figure one thing out.
  I have ant task with groovy class that is supposed to read lines from property file
  and switch some of the property.values, for example 1 with "One", 2 with "Two" etc.
  I have extracted the values so I've got 1,2,3 etc or 5,7,1 and now the problem starts
  I know about the replaceAll method, but is it possible to somehow make it more flexible? Or if I want to change 1 2 3  I have to define 3 replaceAll methods ("1", "One") ("2","Two") ("3", "Three") ?
  Oh and yes, switch the values only on output.</p>