# removing items from array: my @values = ( "stuff", "has'some'quotes", "foo" ); @values = grep( $_ !~ /'/, @values ); # removing single quotes from a string: my $string = "has'some'quotes\nand a second'line'of stuff"; $string =~ s/'//sg;