Hi. Ur problem probably has to do with how ur eating the HTML file. A
regex with /s needs the entire file in one variable. If u do a line by line
with it won't work since u won't have everything in one var. Give
this a try.
$file = join "", ;
@divmatches = $file =~ m/]*>(.+?)<\/div>/sg;
As o
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Andy Postulka
Sent: 21 October 2008 17:47
To: perl-win32-users@listserv.ActiveState.com
Subject: RegExp matching over multiple lines
> Hi to everyone,
>
> First off I hope I'm posting this to the right Mailing list.
> If not, please
Andy - do yourself a favor and don't try it manually. This problem has been
solved by a number of publicly available modules already. Take a look at
HTML::Parser (or HTML::PullParser) for example, which offers extraction of
content between opening and closing tags.
Hope this helps
Tobias
Fr
Hi to everyone,
First off I hope I'm posting this to the right Mailing list.
If not, please forgive me in advance. I just started using ActivePerl
I'm having difficulty using RegExp to match/extract across several lines in an
HTML file.
I want to match and extract everything between a pair of
Duffy, Peter <> wrote:
> Hi Brian,
>
> Thanks very much for that. Apologies for missing the \s and \t - I
> should have spotted those: I take your point about using "strict" and
> "warnings". Almost immediately after sending the original post, I
> noticed that I'd used double-quotes and tried repl
Hi Brian,
Thanks very much for that. Apologies for missing the \s and \t - I
should have spotted those: I take your point about using "strict" and
"warnings". Almost immediately after sending the original post, I
noticed that I'd used double-quotes and tried replacing them with
single-quotes: howe
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Duffy, Peter
Sent: 21 October 2008 12:14
To: perl-win32-users@listserv.ActiveState.com
Subject: file::spec splitpath problems
> Hi,
>
> I'm trying to use the File::Spec module to assist with
creating scripts which will work on bot
Hi,
I'm trying to use the File::Spec module to assist with creating scripts
which will work on both linux and windows. I'm hitting a problem when I
try to use the splitpath function. According to the manual, it should
return the list ( $volume, $directories, $filename). However, when I try
this un
Win32-API in ActivePerl 5.8.8.824
no return reference value
Is there a solution?
___
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs