Groovy web console

subscribe to the feed Subscribe
to this
site

non capuring group issue

Published 6 months ago by Anonymous
Actions Execute script  ▶ Edit in console Back to console Show/hide line numbers View recent scripts
// WTF
// noncaptured group is failed - (?:<pattern>)
println '[failed ] 2ef2dc3cfca0f8fdd5eb8e10b77bae317d2b88de'.replace(/(?:[failed ]) 2e/, "------")