On Sun, Jul 16, 2000 at 09:16:21PM -0500, Kevin van Haaren wrote: > Sorry for taking so long to reply and thank you, but here it is: thanks. > > I decided to stick with my own implementation instead of using the > single regex you had. The reason is this, I tried your regex and it > kept failing. I couldn't figure it out until I looked at the > original HTML page. I'm looking at the value of a particular META > tag and they had reversed the name= and content= from what I > typically see (name first then content). Obviously I could just > reverse the order in your regex, but then I got paranoid that they > might decide to do it the "normal" way and break that regex too. > > my way is position independent (not that that is the reason i wrote > it that way 8-) and I couldn't think of a way to write a single regex > that was position independent to strip out the data I'm looking for. 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; Ronald ==== Want to unsubscribe from this list? ==== Send mail with body "unsubscribe" to macperl-anyperl-request@macperl.org