title: How to check if a String matches a pattern in Groovy
body: <p>How do I check if a string matches a pattern in groovy? My pattern is "somedata:somedata:somedata", and I want to check if this string format is followed. Basically, the colon is the separator.</p>