$_ = "caaat"; my @hits = /(?|c(a)|k(t))/g; say scalar @hits; say @hits; __END__ 1 a [download]
In reply to Re^2: empty hits with regex by JavaFan in thread empty hits with regex by Anonymous Monk