Groovy: How to check if a string contains any element of an array? Groovy: How to check if a string contains any element of an array? arrays arrays

Groovy: How to check if a string contains any element of an array?


def valid = pointAddress.findAll { a ->    validPointTypes.any { a.contains(it) }}

Should do it