0:55 >perl -wE "my $s= qq[Can you please remove 'me' as that me is no longer required, but this 'X' should go as well]; $s =~ s/(\s*'[^']*?')//g; say qq[\n$s];" Can you please remove as that me is no longer required, but this should go as well 0:55 >