Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Deletion of none ascii char and null chars 1

Status
Not open for further replies.

vodkadrinker

Technical User
May 16, 2002
163
0
0
GB
Is there and simple way to do these two commands in one?

Code:
$logline =~ s/[^[:ascii:]]//g;
$logline =~ s/\0//g;
 
Thanks feherke works a treat and useful information on the alternation something I'm sure I'll use through out.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top