in reply to Re: remove bad characters
in thread remove bad characters

thanks for the help guys, this did the trick
$string =~ s{ ( [^\x00-\x7E] ) }{}xmsg;
i just have to start practicing using regex, i'm really bad at it

Replies are listed 'Best First'.
Re^3: remove bad characters
by FunkyMonk (Bishop) on Jun 27, 2007 at 21:25 UTC
    That's going to leave many control characters in your data. You haven't specified what a "bad character" is, so that might be OK.