"Anurag K. Singh" wrote: > > hi all, Hello,
> I have control characters ( like ^A , ^M ) in my ascii input file > and I want to substitute them by space or just delete them. > Can anyone suggest a regex for this substitution ??? If you want to remove all control characters: s/[[:cntrl:]]+//g If you want to remove all control characters except newline and tab: s/[^\n\t[:^cntrl:]]+//g Or using transliteration instead of substitution: tr/\0-\037//d tr/\0-\010\013-\037//d John -- use Perl; program fulfillment -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]