class Ideone {
    static void main(String[] args) {
        String commitMsg = "#build #images = image-a, image-b,image_c, imaged , image-e #setup=my-setup fixing issue with px"
        def re = /(?i)(?:\G(?!^)\s?,\s?|#images\s?=\s?)(\w+(?:-\w+)*)/
		def matcher = (commitMsg =~ re).collect()
        for(m in matcher) {
		    println(m[1])
		}
    }
}
