Article View: pl.comp.lang.perl
Article #1132Re: pattern matching problem
From: Marek Matula
Date: Fri, 20 Mar 1998 16:50
Date: Fri, 20 Mar 1998 16:50
17 lines
1041 bytes
1041 bytes
On Wed, 18 Mar 1998 17:34:36 GMT, Michael Lepine <mlepine@bellsouth.net> wrote: > >For some reason I get a syntax error with the second pattern matching >sequence in the code ( /^.*</ul>.*?/ ). No matter what I replace the >search pattern with, I get an error. Can someone please help me figure >out a way around this? > Guess, you should precede the slash with the backslash. Try this: /^.*<\/ul>.*?/ -- Marek Matula marekm@zeus.polsl.gliwice.pl http://www.polsl.gliwice.pl/~marekm ICQ UIN: 3888637
Technical Details
Message-ID:
<35173831.5571852@news.icm.edu.pl>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!pingwin.icm.edu.pl!news.icm.edu.pl!not-for-mailReferences:
<35100724.43AFC3CC@bellsouth.net>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!pingwin.icm.edu.pl!news.icm.edu.pl!not-for-mail From: marekm@zeus.polsl.gliwice.pl (Marek Matula) Newsgroups: pl.comp.lang.perl Subject: Re: pattern matching problem Date: Fri, 20 Mar 1998 16:50:09 GMT Organization: Taboo Productions! Lines: 17 Message-ID: <35173831.5571852@news.icm.edu.pl> References: <35100724.43AFC3CC@bellsouth.net> NNTP-Posting-Host: ppp-wct462.katowice.tpnet.pl Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit