/(\b(?:deferred|unrealized)\b)[^.]*\.)([^.]*\.)([^.]*\.)/ and print "Sentence 1: $1; Sentence 2: $2; Sentence 3: $3\n";