Mar 13, 2013 #1 vodkadrinker Technical User Joined May 16, 2002 Messages 163 Location GB Is there and simple way to do these two commands in one? Code: $logline =~ s/[^[:ascii:]]//g; $logline =~ s/\0//g;
Is there and simple way to do these two commands in one? Code: $logline =~ s/[^[:ascii:]]//g; $logline =~ s/\0//g;
Mar 13, 2013 1 #2 feherke Programmer Joined Aug 5, 2002 Messages 9,541 Location RO Hi Perl: [navy]$logline[/navy] [teal]=~[/teal] [b]s[/b][fuchsia]/[^[:ascii:]][highlight]|[/highlight]\0//[/fuchsia][b]g[/b][teal];[/teal] man perlre said: [tt][highlight]|[/highlight] Alternation[/tt] Click to expand... ( man perlre | Regular Expressions | Metacharacters ) Feherke. [link feherke.github.com/]http://feherke.github.com/[/url] Upvote 0 Downvote
Hi Perl: [navy]$logline[/navy] [teal]=~[/teal] [b]s[/b][fuchsia]/[^[:ascii:]][highlight]|[/highlight]\0//[/fuchsia][b]g[/b][teal];[/teal] man perlre said: [tt][highlight]|[/highlight] Alternation[/tt] Click to expand... ( man perlre | Regular Expressions | Metacharacters ) Feherke. [link feherke.github.com/]http://feherke.github.com/[/url]
Mar 14, 2013 Thread starter #3 vodkadrinker Technical User Joined May 16, 2002 Messages 163 Location GB Thanks feherke works a treat and useful information on the alternation something I'm sure I'll use through out. Upvote 0 Downvote
Thanks feherke works a treat and useful information on the alternation something I'm sure I'll use through out.