in reply to RegEx: Detecting the certain cyrillic words
#!/usr/bin/perl use utf8; use strict; use warnings FATAL => 'all'; use WWW::Mechanize qw(); my $mech = WWW::Mechanize->new; $mech->credentials('user' => 'password'); $mech->get('http://www.rambler.ru/'); my ($Кремль) = $mech->content =~ /(Кремль)/i;You very likely want to use Web::Query to dissect your HTML instead of regex, or at least match against the HTML-stripped text version of the document.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: RegEx: Detecting the certain cyrillic words
by programmer.perl (Beadle) on Mar 01, 2013 at 17:10 UTC | |
by choroba (Cardinal) on Mar 01, 2013 at 18:11 UTC | |
by programmer.perl (Beadle) on Mar 01, 2013 at 18:17 UTC | |
by choroba (Cardinal) on Mar 01, 2013 at 18:22 UTC | |
Re^2: RegEx: Detecting the certain cyrillic words
by programmer.perl (Beadle) on Mar 01, 2013 at 16:55 UTC |
In Section
Seekers of Perl Wisdom