Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
sub ascii_test{ my $string = shift; if ($string =~ /[^\x00-\x7f]/){ return "[$string] contains non ascii characters"; } else{ return "[$string] is all ascii"; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How do I determine if a string contains non ascii characters
by japhy (Canon) on Jul 13, 2001 at 15:46 UTC | |
by Anonymous Monk on Jul 13, 2001 at 16:00 UTC | |
by japhy (Canon) on Jul 13, 2001 at 16:08 UTC | |
by Hofmator (Curate) on Jul 13, 2001 at 19:40 UTC | |
by tye (Sage) on Jul 13, 2001 at 19:18 UTC |