Groovy web console

subscribe to the feed Subscribe
to this
site

UTC regex groovy

Published 1 month ago by Naman Arora
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
def cdate = "2020-04-30T17:28:38.350+00:00"

boolean match = cdate =~ /\d{4}-[0-1]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-6]\d.\d{3}\+\d\d:\d\d/

System.out.print(match)