Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^5: RegEx: Detecting the certain cyrillic words

by choroba (Canon)
on Mar 01, 2013 at 18:22 UTC ( #1021314=note: print w/ replies, xml ) Need Help??


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
لսႽ ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ


Comment on Re^5: RegEx: Detecting the certain cyrillic words
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1021314]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (9)
As of 2015-07-03 06:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (48 votes), past polls