in reply to Regex to extract multiple occurrences

Another solution, 1 regexp, and a bit less complicated than that of davido:
my (@rep) = /(?:It contains|\G) (\w+)[.,]/g;
This uses the \G anchor to continue where the previous match ended.