A
Amos
Hi,
I'm a perl newbie, so I apologize for this simple question.
I need to modify an existing perl script to handle languages other
than English (specifically Hebrew as a start).
The script has this line:
y/a-z0-9/ /cs; # retain only alpha-numeric entries
which replaces all non-alphanumeric chars with spaces.
I need it to keep Hebrew characters as well, but haven't been able to
find a regex that works.
I tried stuff like this:
y/a-z0-9×-ת/ /cs;
y/a-z0-9[\x{05D0}-\x{05EA}]/ /cs; # the unicode codes for the first
and last alphabet letters
But nothing seems to work.
Any ideas?
Thanks!
Amos
I'm a perl newbie, so I apologize for this simple question.
I need to modify an existing perl script to handle languages other
than English (specifically Hebrew as a start).
The script has this line:
y/a-z0-9/ /cs; # retain only alpha-numeric entries
which replaces all non-alphanumeric chars with spaces.
I need it to keep Hebrew characters as well, but haven't been able to
find a regex that works.
I tried stuff like this:
y/a-z0-9×-ת/ /cs;
y/a-z0-9[\x{05D0}-\x{05EA}]/ /cs; # the unicode codes for the first
and last alphabet letters
But nothing seems to work.
Any ideas?
Thanks!
Amos