add extracted patterns in plain text