mark@DRD.Com (Mark Lawrence) (08/21/90)
Can somebody e-mail me a pattern that will match lines beginning with Received: and the next line iff it begins with whitespace? E-mail would be fine, though I _do_ read this group religiously (don't ya just hate drop-ins?). -- mark@DRD.Com uunet!apctrc!drd!mark$B!J%^!<%/!!!&%m!<%l%s%9!K(B
merlyn@iwarp.intel.com (Randal Schwartz) (08/24/90)
In article <1990Aug21.135624.4354@DRD.Com>, mark@DRD (Mark Lawrence) writes: | Can somebody e-mail me a pattern that will match lines beginning with | Received: and the next line iff it begins with whitespace? E-mail would | be fine, though I _do_ read this group religiously (don't ya just hate | drop-ins?). If the whole header is in $_, and $* is non-zero, something like: /^Received:.*(\n\s+.*)*\n/ should work. If you are trying to do something from <>, it'll be trickier -- so tricky that I can't think of a non-kludge way to do it in the 45 seconds I had to respond to this message (maybe I'll come up with it during the JAPH :-). $_ = "hacker, Perl another"; / .* /; print "Just $'$&$`" -- /=Randal L. Schwartz, Stonehenge Consulting Services (503)777-0095 ==========\ | on contract to Intel's iWarp project, Beaverton, Oregon, USA, Sol III | | merlyn@iwarp.intel.com ...!any-MX-mailer-like-uunet!iwarp.intel.com!merlyn | \=Cute Quote: "Welcome to Portland, Oregon, home of the California Raisins!"=/