update regex matches to obtain text for the collection of matches found