Groovy web console

subscribe to the feed Subscribe
to this
site

ads

Published 3 months ago by ads with tags ads
Actions Execute script  ▶ Edit in console Back to console Show/hide line numbers View recent scripts
RELEASE_TAG="v150"

if (!RELEASE_TAG ==~ 'v[0-9]+-release') { print "1\n" }
if (!(RELEASE_TAG ==~ 'v[0-9]+-release')) { print "2\n" }
if (RELEASE_TAG !=~ 'v[0-9]+-release') { print "3\n" }