in reply to Re: Strip escape sequences
in thread Strip escape sequences

(my $noesc = $line) =~ s/\e\[[^a-zA-Z]*[a-zA-Z]|\r//g;

might work as a more general solution.

Replies are listed 'Best First'.
Re^3: Strip escape sequences
by monk-beginner (Initiate) on Dec 10, 2006 at 12:30 UTC
    Hi all Monks,

    I wasn't really clear in my previous message.

    I need to strip the escape sequences to clearly send the command output via mail to the postmaster.

    Thank you all for your hints.

    Now it works.

    Again thanks you all.

    Monk Beginner Phil