如何检查字符串是否与groovy中的模式匹配?我的模式是"somedata:somedata:somedata",我想检查是否遵循了这种字符串格式.基本上,冒号是分隔符.
java groovy
groovy ×1
java ×1