Groovy web console

subscribe to the feed Subscribe
to this
site

replaceAll example

Published 5 days ago by Anonymous
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
templateTitle = "this is a (test)"

println templateTitle.replaceAll("[ ()]", "-")