Answer the question
In order to leave comments, you need to log in
How to get rid of "Wide character in regexp compilation at" in Russian regular expression?
Is it possible to get rid of curses on a regular expression with Russian letters?
Wide character in regexp compilation at F:/GIT/1c-translation-script/translate-with-dict.pl line 81.
Variable length lookbehind is experimental in regex; marked by <-- HERE in m/(?<=[^╨Р-╤П╤С╨Б]|^)╨Ь╨░╨║╤Б╨╕╨╝╤Г╨╝╨б╨╡╤А╨╕╨╣╨Ъ╨╛╨╗╨╕╤З╨╡╤Б╤В╨▓╨╛(?=[^╨Р-╤П╤С╨Б]|$) <-- HERE / at F:/GIT/1c-
translation-script/translate-with-dict.pl line 81.
$line =~ s/(?<=[^А-яёЁ]|^)$ru(?=[^А-яёЁ]|$)/$en/g;
#no warnings;
use utf8;
binmode STDOUT, ':utf8';
binmode STDIN, ':utf8';
Answer the question
In order to leave comments, you need to log in
Try replacing
$line =~ s/(?<=[^А-яёЁ]|^)$ru(?=[^А-яёЁ]|$)/$en/g;
with
$line =~ s/(?<=[^А-яёЁ]|^)$ru(?=[^А-яёЁ]|$)/$en/gu;
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question