http://www.perlmonks.org?node_id=1171995


in reply to Remove ÿþ from a string

If you want to remove particularly the character sequence "ÿþ", it's quite simple:
use utf8; my $string = 'AÿþBÿþÿþC'; $string =~ s/ÿþ//g; print $string;
Result:
ABC