use warnings; use strict; my $sentence = "Furthermore , expression of Vpu in Jurkat T cells rendered them more susceptible to Fas - induced death "; $sentence =~ s/\s*(((?!|<\/GENE>).)+)\s*<\/GENE>//gi; print "$sentence\n"; __END__ Furthermore , expression of in Jurkat T cells rendered them more susceptible to - induced death