"George Mpouras" <nospam.gr...@hotmail.com.nospam> wrote:
>I have the regex
>
>my $regex = qr/^([\w `^~!@;:,+%&|<>{}()=\-\$\*\?\[\]\\\.\/\'"#]*)$/;
>
>for matching the printable characters `^~!@#$%&*?_+-={}[]()<>;:'"|\,./
>a..z A..Z 0..9
Luckily you are mistaken because depending on your locale \w will match
much more than just those limited ASCII characters .
>is there any better approach ?
Use the class [[:print:]]
Oh, and no, you don't need modules for this.
jue