[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl-AnyPerl] good idea or bad idea?



On Mon, Jul 17, 2000 at 07:44:55PM +0200, Bart Lateur wrote:
> On Mon, 17 Jul 2000 12:33:55 -0400, Ronald J Kimball wrote:
> 
> >If you can't think of a way to do it with a single regex, do it with two
> >regexes.  :)
> >
> >my($story_time) =
> >   $sci_page_head =~ /(.*OriginalPublicationDate.*)/
> >   and $1 =~ /content="(.*)"/i;
> 
> The next is also legal HTML:
> 
> 	<META
> 	   NAME = "OriginalPublicationDate"
> 	   CONTENT = "July 17 2000"
> 	>
> 
> I bet it will pose some problems.

But only problems that would be shared by Kevin's original solution.

Ronald

==== Want to unsubscribe from this list?
==== Send mail with body "unsubscribe" to macperl-anyperl-request@macperl.org