Re: RegExp matching over multiple lines

2008-10-21 Thread Chris Wagner
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

RE: RegExp matching over multiple lines

2008-10-21 Thread Brian Raven
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. &g

RE: RegExp matching over multiple lines

2008-10-21 Thread Tobias Hoellrich
obias From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andy Postulka Sent: Tuesday, October 21, 2008 10:47 AM 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 li

RegExp matching over multiple lines

2008-10-21 Thread Andy Postulka
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