Test, validate and match regular expressions
This regex matches Gradle task declarations that specify a type, such as `task copyTask(type: Copy) {`. It captures the task name in the first group and the task type in the second group. It is intended to be used with global and multiline flags to parse and extract custom task definitions from Gradle build scripts.