I'm sure lots of people have, though maybe not that exact problem. Here is how to do what the Java program does on one line on the command-line prompt:
(change the quotes to suit your shell and OS. "" on Windows, usually '' on Unix)perl -Mutf8 -ne"print if /[^\0-\x7f]/"
So, no need to wade through public static void main... the Perl program's already finished by then.
—John
In reply to Quick script?
by John M. Dlugosz
in thread regex for utf-8
by jjohhn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |