http://www.perlmonks.org?node_id=1021314


in reply to Re^4: RegEx: Detecting the certain cyrillic words
in thread RegEx: Detecting the certain cyrillic words

Weird. Works for me:
#!/usr/bin/perl use warnings; use strict; use utf8; use WWW::Mechanize qw(); my $mech = WWW::Mechanize->new; $mech->credentials('user' => 'pass'); $mech->get('http://kreml.ru/'); my $content = $mech->text(); $content =~ s/\n\r//g; binmode STDOUT, ':utf8'; print $1,"\n" if $content =~ /(\bКремл&# +1100;.*\"\b)(.*)/i;
The regex looks like this in fact:
$content =~ /(\bКремль.*\"\b)(.*)/i
لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ